How to Prevent Yum update of some selected packages in Redhat/Redhat


It is very Simple to exclude some selected packages not to update while using yum update command
All you need to do is add an exclude line to the end of your [main] section in /etc/yum.conf .
Your /etc/yum.conf should look something like this:
[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=3
exclude= hal bash*

This will prevent upgrades of the hal package as well as bash package while using yum update cmd. The list of apps in the exclude should be space sepeated. Shell wildcards ( * ? ) can also be included.



From the desk of Amit Maheshwari


 
Top
Maintained By Amit Maheshwari