YUM – Install Specific Version 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 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.

Cool Tip: Can’t find the specific version of a package? Install EPEL repository and search for the needed version there! Read more →

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 you already have the latest version of a package installed, but you need to downgrade it to the particular version that is older, execute:

$ sudo yum downgrade <package_name>-<version_info>
Was it useful? Share this post with the world!

One Reply to “YUM – Install Specific Version of Package”

  1. downgrade is useful, thanks

Leave a Reply