Skip to content
Tags

How to Prevent Yum update of some selected packages in Redhat-Fedora

May 10, 2010

redhatIt 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.

 

Click here a World Of Information.

Advertisements

From → Linux

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: