yum command to exclude some updates?
I want to do the command 'yum -y update' to update my 64bit FC5, but I dont want it to update my 32 bit firefox (with the update command it says its going to update it to the 64 bit version), and I dont want to update the kernel yet.
Is there an exclude command that can go with the 'yum update' to stop it updating firefox or the kernel but everything else can be done.
Maybe I should use yummex.
Look forward to any comments you have in regards to this.
Yes, you can exclude packages by name - see the man page for yum.
Thanks for that
yum --exclude=firefox --exclude=kernel update
Will try this when I get home
If you want exclude php and mysql then open
Append the following
It will look like
# Note: yum-RHN-plugin doesn't honor this.
# installonly_limit = 3
# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
To exclude i686 packages
Command line option
You can exclude packages in comman line also
yum --exclude=php* update
will exclude php from update
PLEASE do not dig up and post to 4 year old threads
Pssh! Whatever dude! Time is irrelevant. 10 years old or 10 minutes, he still answered a question I was googling for, and because of his post I found the answer.
sometimes it's good to dig up. I've used this post after 6 years ;)
I agree I just used this post today and it helped me. So I'm glad that "itsme_sujith" posted to a four which is a six year post now.
|All times are GMT -5. The time now is 01:23 PM.|