Install a specific package version in CentOS

Solution 1:

Another thing you can do which can be a bit more work than previous answer but works as well is to download the package manually and then run

# yum localinstall /path/package.rpm

That should try to install the specific package you downloaded.

Solution 2:

I believe the following will do what you want, as by default yum won't let you install a release BELOW what's available:

yum install yum-versionlock

and then:

yum --allow-downgrade install bind-libs-9.8.2-0.17.rc1.el6_4.5.x86_64

and to maintain this version in the case of future package updates to your system:

yum versionlock bind-libs