Introduction
There are times that some packages available to be updated create a conflict on the system that can result in a package requiring to be locked while waiting for a solution to be available. The following information will provide information on how to lock a package to prevent updates to it.
Procedure
You need to install yum-plugin-versionlock plugin. It takes a set of name/versions for packages and excludes all other versions of those packages.
To install yum-plugin-versionlock package, enter:
yum install yum-versionlock
You can add a new package to the lock by running the following command:
yum versionlock PACKAGENAME
You can view what packages are currently under a version lock with the following command:
yum versionlock list