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.
^ and ^^ and ^^^
this information was precisely what i was searching for.
to add I found some issues with the exclusion and i always prefer the cli updates.
so, i did this.
yum --exclude=xorg* --skip-broken update
and that allowed me to update (about) 900 packages after a new install and prevent a brand new video card from getting a driver that was crashing X.
yum update was planning on 10+ xorg-X11 updates when the default one is working perfectly.
this is a time proven thread.
ASUS geforce GT 630(silent) 0dB, 2GB DDR3,
is actually an NVIDIA corp GK208 Board - 21320
and yums update was pushing unstable updates...
the above command allows all updates, while suppressing anything begining with xorg (in my case about 10 small files, the * is a wildcard ) and ignored all the dependencies associated with them.
thank you itsme_sujith, for taking the time to extend the (valuable) details, and the OP too.
|All times are GMT -5. The time now is 12:41 AM.|