Yum Package Version Lock

yum versionlock, to restrict a package to a fixed version against yum update/upgrade.

The plugin stores a package list in /etc/yum/pluginconf.d/versionlock.list, which you can edit directly. Yum will normally attempt to update all packages, but the plugin will exclude the packages listed in the versionlock.list file.

1
2
3
4
5
6
7
8
9
10
11
12
13
# install version lock
yum install yum-plugin-versionlock

# list lock
yum versionlock list [package name]

# delete lock
yum versionlock delete 0:elasticsearch*
# clear all version lock
yum versionlock clear

# add lock
yum versionlock add elasticsearch-7.10.2
0%