How to Use the YUM Versionlock Plugin to Exclude Specific RPM Packages From Being Upgraded
There are instances where specific versions of an application or driver RPM package may have dependencies on specific kernel versions. In situations like this, you can use the YUM Versionlock Plugin to maintain those dependencies and prevent the kernel version from being updated via YUM.
1) Install the yum-versionlock plugin:
# yum install -y yum-versionlock
2) Make sure yum plugin versionlock is enabled in /etc/yum/pluginconf.d/versionlock.conf:
# cat /etc/yum/pluginconf.d/versionlock.conf
[main]
enabled = 1
locklist = /etc/yum/pluginconf.d/versionlock.list
# Uncomment this to lock out "upgrade via. obsoletes" etc. (slower)
# follow_obsoletes = 1
3) Add the name and version of any RPMs you want to be locked to /etc/yum/pluginconf.d/versionlock.list: