How to list all the available version of a package.
I have a VM running Red Hat Enterprise Linux Server release 7.3 (Maipo) and I am looking for a way to pull the list of all the available version of a package.
Is it possible to get the list of all the available version for kernel-devel package for 7.0, 7.1, 7.2, 7.3 & 7.4 using a single VM running 7.3?
For example I tried setting release to 7.1 and enabled EUS repo as well but still I see only limited versions of kernel-devel using
"yum --showduplicates list available kernel-devel"
Any help would be really appreciated.
Thanks,
Amit
Responses
How do you know you are seeing only limited versions? How many are you seeing?
yum --showduplicates is the way to see all available versions of a package.
On our satellite server which communicates with Red Hat CDN repositories, your command returns 47 packages. On a satellite client internally, I see the same thing.
If --showduplicates isn't showing the expected or known-correct number of versions, it's usually indicative that your repo/channel doesn't contain all of the packages. In some cases, you might get your expected list by adding --enablerepo=*, but - it's no guarantee it will do so and, depending on your client's configuration, may result in lots of error messages.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
