How to list all the available version of a package.

Latest response

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.

On my VM I have following repos enabled

rhel-7-server-eus-rpms/x86_64                                                    enabled: 11,969
rhel-7-server-rpms/x86_64                                                             enabled: 17,881
rhel-7-server-rt-rpms/x86_64                                                        enabled:    254

Running "yum --showduplicates list kernel-devel" on this VM gives me a list of 63 unique entries (there will be duplicates as same versions exist in different repos). List is provided below.

But when I log into the redhat.com UI and look for list of available kernel-devel packages, I see a lot more. For example 3.10.0-229.49.1.el7, 3.10.0-229.48.1.el7 .... These are missing from list that yum returns.

3.10.0-229.49.1.el7 is available in repo
Red Hat Enterprise Linux Server - Extended Update Support 7.1 x86_64    rhel-7-server-eus-rpms

Output of yum --showduplicates -----

3.10.0-123.1.2.el7
3.10.0-123.13.1.el7
3.10.0-123.13.2.el7
3.10.0-123.20.1.el7
3.10.0-123.4.2.el7
3.10.0-123.4.4.el7
3.10.0-123.6.3.el7
3.10.0-123.8.1.el7
3.10.0-123.9.2.el7
3.10.0-123.9.3.el7
3.10.0-123.el7
3.10.0-229.11.1.el7
3.10.0-229.1.2.el7
3.10.0-229.14.1.el7
3.10.0-229.20.1.el7
3.10.0-229.4.2.el7
3.10.0-229.7.2.el7
3.10.0-229.el7
3.10.0-327.10.1.el7
3.10.0-327.13.1.el7
3.10.0-327.18.2.el7
3.10.0-327.22.2.el7
3.10.0-327.28.2.el7
3.10.0-327.28.3.el7
3.10.0-327.3.1.el7
3.10.0-327.36.1.el7
3.10.0-327.36.2.el7
3.10.0-327.36.3.el7
3.10.0-327.41.3.el7
3.10.0-327.41.4.el7
3.10.0-327.44.2.el7
3.10.0-327.4.4.el7
3.10.0-327.4.5.el7
3.10.0-327.46.1.el7
3.10.0-327.49.2.el7
3.10.0-327.53.1.el7
3.10.0-327.55.1.el7
3.10.0-327.55.2.el7
3.10.0-327.55.3.el7
3.10.0-327.58.1.el7
3.10.0-327.59.1.el7
3.10.0-327.59.2.el7
3.10.0-327.59.3.el7
3.10.0-327.61.3.el7
3.10.0-327.62.1.el7
3.10.0-327.el7
3.10.0-514.10.2.el7
3.10.0-514.16.1.el7
3.10.0-514.21.1.el7
3.10.0-514.21.2.el7
3.10.0-514.2.2.el7
3.10.0-514.26.1.el7
3.10.0-514.26.2.el7
3.10.0-514.6.1.el7
3.10.0-514.6.2.el7
3.10.0-514.el7
3.10.0-693.11.1.el7
3.10.0-693.11.6.el7
3.10.0-693.1.1.el7
3.10.0-693.2.1.el7
3.10.0-693.2.2.el7
3.10.0-693.5.2.el7
3.10.0-693.el7

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.

On my VM I have following repos enabled

rhel-7-server-eus-rpms/x86_64                                                    enabled: 11,969
rhel-7-server-rpms/x86_64                                                             enabled: 17,881
rhel-7-server-rt-rpms/x86_64                                                        enabled:    254

Release is set to 7.1

[xxx@localhost ~]$ sudo subscription-manager release --show
Release: 7.1

I don't see lot of kernel-devel package versions that are included in "rhel-7-server-eus-rpms" repo. I can see these on redhat.com but not using via yum

3.10.0-229.49.1.el7 (lot of others) is available in repo
Red Hat Enterprise Linux Server - Extended Update Support 7.1 x86_64    rhel-7-server-eus-rpms

Not sure if I am missing something

Seems I found the issue. After setting the release I wasn't cleaning up yum cache. Executing "yum clean all" after release set, seems to have solved the issue.

Thanks for all your help.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.