How to use Yum VersionLock to keep specific versions of your kernel
- Details Hits: 8948
I never seem to find one site that gives all the answers in using yum versionlock.
[root@quad-wn16 ~]# rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE}\n" | grep kernel
kernel-lustre-devel-2.6.18-128.7.1.el5_lustre.1.8.1.1
kernel-xen-devel-2.6.18-128.7.1.el5
kernel-2.6.18-128.1.1.el5
kernel-2.6.18-164.9.1.el5
kernel-lustre-2.6.18-128.7.1.el5_lustre.1.8.1.1
kernel-ib-1.4.2-2.6.18_128.7.1.el5_lustre.1.8.1.1
kernel-headers-2.6.18-164.9.1.el5
kernel-devel-2.6.18-128.7.1.el5
[root@quad-wn16 ~]# vi /etc/yum/pluginconf.d/versionlock.list
kernel-2.6.18-128.1.1.el5
kernel-2.6.18-164.9.1.el5
kernel-lustre-devel-2.6.18-128.7.1.el5_lustre.1.8.1.1
kernel-xen-devel-2.6.18-128.7.1.el5
kernel-lustre-2.6.18-128.7.1.el5_lustre.1.8.1.1
kernel-ib-1.4.2-2.6.18_128.7.1.el5_lustre.1.8.1.1
kernel-headers-2.6.18-164.9.1.el5
kernel-devel-2.6.18-128.7.1.el5
That's it.