Saturday, August 29, 2009

selective yum update

Problem: I want to do frequent 'yum updates' however i want to exclude a few packages and stick to whatever versions I have

Solution: The yum.conf file is your saviour. All you need to do is add a
"exclude = foo"
in your /etc/yum.conf

If you've already run into trouble. You will have to downgrade to your favorite version first.
rpm -Uvh foo-0.0001 --oldpackage

And then of course fix your yum conf.

Learnt it the hard way. One fine soul (chhapri) happily did an update :)

No comments: