How to use yum to list All versions of Package

Table of Contents

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 –showduplicates

Install Specific Version Of Package

To install a specific version of a package, run:

$ sudo yum install –

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 –

Share on facebook
Share on twitter
Share on linkedin
Liquid Web Managed Word Press