Sep 28, 2011
How To Lock Installed RPM Package Update
Sep 28, 2011 by Ravi Saive
How To Lock Installed RPM Package In Linux
1. Install the plugin by using below command.[root@ravisaive.in ~]# yum install yum-versionlock2. Once plugin installed, check enabled = 1 appears in /etc/yum/pluginconf.d/versionlock.conf.
[root@ravisaive.in ~]# 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 = 13. Now add the packages you want to lock in /etc/yum/pluginconf.d/versionlock.list. For example firefox-3.6.17-1.el5.centos.
[root@ravisaive.in ~]# cat /etc/yum/pluginconf.d/versionlock.list firefox-3.6.17-1.el5.centos4. Once you added your package in lock list. Try to install the same package with YUM.
[root@ravisaive.in ~]# yum install firefox Loaded plugins: downloadonly, fastestmirror, priorities, versionlock Loading mirror speeds from cached hostfile * base: centos.aol.in * epel: ftp.kddilabs.jp * extras: centos.aol.in * rpmforge: fr2.rpmfind.net * updates: ftp.iitm.ac.in Reducing CentOS-5 Testing to included packages only Finished 1380 packages excluded due to repository priority protections Reading version lock configuration Setting up Install Process Nothing to do5. Check above output in red line, Yum reads lock file before installating them.
Read my earlier article on Rebuild Corrupted RPM Database.
About : Ravi Saive

Simple Word a Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux. Because it is usually free and allow me do geeky stuff such as Programming and Scripting with CLI (Command Line Interface).
Subscribe to:
Post Comments (Atom)
0 Responses to “How To Lock Installed RPM Package Update”
Post a Comment