In Redhat/CentOS 6 it’s possible to selectively pin a particular package version to keep it from updating. For that we will use the versionlock plugin:
yum install yum-plugin-versionlock
To add a package to the lock list:
yum versionlock add <package_name>
Loaded plugins: security, versionlock
Adding versionlock on: 0:<package_name>-<package_version>
versionlock added: 1
To remove an entry from lock list:
yum versionlock delete 0:<package_name>-<package_version>
Loaded plugins: security, versionlock
Deleting versionlock for: 0:<package_name>-<package_version>
versionlock added: 1
To check the lock list content:
yum versionlock list
Loaded plugins: security, versionlock
0:<package_name>-<package_version>
...
versionlock list done