What is the difference between yum updateinfo list available/all?
Hello folks,
I'm somewhat confused about the difference in the following to commands. From yum(8):
updateinfo
[...]
yum updateinfo list [all | available | installed | updates]
[...]
which all display information about the available update infor-
mation relevant to your machine (including anything installed, if you supply "all").
[...]
* available Is used to display information about advisories for
packages available for updating or installation.
* all Is used to display information about both installed and
available advisories.
So available shows information for packages whether they are installed or not. Because it says "available for updating or installation." For me that sounds like the same as in the option all.
But the two opitions show different results:
# yum updateinfo list available | wc -l
19148
# yum updateinfo list all | wc -l
20473
Could someone explain the difference between the to options to me, please?
Regards,
Joerg
Responses
Hi Jörg,
I did some research, and I think that I found the difference here -> https://access.redhat.com/solutions/10021sudo yum updateinfo list available lists all packages which have Errata Bug Fix and Security Advisories.sudo yum updateinfo list all lists all packages (with and without Errata Bug Fix and Security Advisories).
This explains the higher number of packages - included are the ones that have only feature or version updates.
Cheers :)
Christian
Update : Some further research lead to the result that the information given above needs to be corrected.sudo yum updateinfo list all is used to display information about installed and available advisories.sudo yum updateinfo list available is used to display information about just available advisories.sudo yum updateinfo list installed is used to display information about just installed advisories.
Christian
Hi Jörg,
What you can do to find it out exactly, is to execute both commands, copy the output from each of them into a separate .txt file and compare the content of those two files with a tool like meld ... then you'll know the difference between the packages shown in list all and list available.
Regards,
Christian
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
