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 note i 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:
# yum install <package_name>-<version_info>.<platform_info (i686 or x86_64)>
Force Yum To Downgrade Package
If you already have the latest version of a package installed, but you need to downgrade it to the particular version that is older, execute:
# yum downgrade <package_name>-<version_info>.<platform_info (i686 or x86_64)>