-
Notifications
You must be signed in to change notification settings - Fork 20
Add functionality to support EL7 extended output #23
base: master
Are you sure you want to change the base?
Conversation
On el7, yum will list all the packages available for update *after* the summary line, as well as in the transaction. At first I tried just checking for *2 lines in the output before failing with the bad signature, but this didn't seem quite as robust.
Hey. I've just had look at this... Could you possibly tell me the exact verisons/etc. you're using, as well as giving debug output (-vvv)? Cheers. |
Thanks for getting back to me - I'm running CentOS 7.2.1511, The output of Obviously, if there weren't many outstanding non-security updates, the output signature check won't be tripped. Also, given how robust/defensive the rest of the code is, my PR probably isn't in a shippable state anyway. |
A bit more info: It seems that the double lines are only a subset of the packages listed in the I'm going to have a skim over the yum source and see if I can work out why it's actually happening. I'll update this pull with something better if I can find out what's going on. Edit: I'm now seeing a different issue. I think this confirms that it's to do with updateinfo?: [root@staging2 ~]# yum --security check-update | tail
--> ipsilon-saml2-base-1.0.0-13.el7_3.noarch from updates excluded (updateinfo)
--> ipsilon-client-1.0.0-13.el7_3.noarch from updates excluded (updateinfo)
--> ipsilon-filesystem-1.0.0-13.el7_3.noarch from updates excluded (updateinfo)
--> ipsilon-infosssd-1.0.0-13.el7_3.noarch from updates excluded (updateinfo)
--> ipsilon-persona-1.0.0-13.el7_3.noarch from updates excluded (updateinfo)
--> ipsilon-authform-1.0.0-13.el7_3.noarch from updates excluded (updateinfo)
--> ipsilon-authgssapi-1.0.0-13.el7_3.noarch from updates excluded (updateinfo)
--> ipsilon-authldap-1.0.0-13.el7_3.noarch from updates excluded (updateinfo)
--> ipsilon-base-1.0.0-13.el7_3.noarch from updates excluded (updateinfo)
No packages needed for security; 0 packages available Notice there are 0 packages available, but seemingly some updates which are being excluded (even if I don't pass Now: [root@staging2 ~]# yum --security check-update | wc -l
20773 There's something quite badly wrong here - there's only about 300 packages installed. It seems to be spitting the same excluded packages out over and over again? |
@calestyo I've read a little more about yum-security on el7 (where it isn't a plugin). Would you accept a PR which used the For example: yum -q updateinfo list updates security This will output a list of packages which can be updated to which are considered security updates by the repo they come from. It'll do so one per line without anything else in the output as far as I can tell. Thoughts? |
I had a look at the code in yum-3.4.3-150.el7.centos., and it seems really broken to be honest. The output comes from this code:
INFO_1 is the same verbosity as the output check_yum uses to find the summary, so it can't be filtered that way. This output is emitted for every package not listed by
So that function will return a list of packages which have updates, and the output about "excluded" will appear about every other package known to the system.
Useful output, hmm? PS. CentOS 7 does not provide security updates information. You will only be notified by security updates if they appear in EPEL or 3rd party repositories. This is due to policy at RedHat, if you want this information, you must pay for RHEL7 support. |
On el7, yum will list all the packages available for update after the summary line, as well as in the transaction. At first I tried just checking for
* 2
lines (as per #20) in the output before failing with the bad signature, but this didn't seem quite as robust.I'm not sure if this will be too brittle with yum versions which don't output in this same format - perhaps you've got a better idea than I do?