How to use yum to list All versions of Package

By default, yum installs the latest version of a package among the all versions available in enabled repositories.


Often it is required to install not the latest one, but some specific version or downgrade the already installed package to an older version.



In this post, we will show how to make yum list all available versions of a specified package and how to instruct it to install the particular one.







Show All Versions Of Package

Run the following command to show all versions of a package, available in enabled repositories:


$ yum list <package_name> --showduplicates


Install Specific Version Of Package

To install a specific version of a package, run:


$ sudo yum install <package_name>-<version_info>


Force Yum To Downgrade Package

If we already have the latest version of a package installed, but we need to downgrade it to the particular version that is older, execute:


$ sudo yum downgrade <package_name>-<version_info>



18 views
learn.png
cloud.png
genius.png