You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to Use the YUM Versionlock Plugin to Exclude Specific RPM Packages From Being Upgraded

Closed
1
Views
0
Comments
edited Jun 30, 2022 1:56PM in Linux

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:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!