list all versions of an available package using yum/dnf


dnf list <packagename> --showduplicates

Example:

[ec2-user@ip-172-31-39-90 ~]$ sudo dnf list kmod-kvdo --showduplicates

 Updating Subscription Management repositories.
 Unable to read consumer identity
 This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
 Last metadata expiration check: 0:04:00 ago on Thu 03 Jun 2021 23:54:45 UTC.
 Available Packages
 kmod-kvdo.x86_64  6.2.0.293-50.el8  rhel-8-baseos-rhui-rpms
 kmod-kvdo.x86_64  6.2.0.293-52.el8_0  rhel-8-baseos-rhui-rpms
 kmod-kvdo.x86_64  6.2.0.293-53.el8_0  rhel-8-baseos-rhui-rpms
 kmod-kvdo.x86_64  6.2.1.138-57.el8  rhel-8-baseos-rhui-rpms
 kmod-kvdo.x86_64  6.2.1.138-58.el8_1  rhel-8-baseos-rhui-rpms
 kmod-kvdo.x86_64  6.2.2.117-65.el8  rhel-8-baseos-rhui-rpms
 kmod-kvdo.x86_64  6.2.3.114-74.el8  rhel-8-baseos-rhui-rpms
 kmod-kvdo.x86_64  6.2.4.26-77.el8  rhel-8-baseos-rhui-rpms

[ec2-user@ip-172-31-39-90 ~]$

Leave a Reply

Your email address will not be published. Required fields are marked *