Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 12-06-2006, 03:35 PM   #1
Registered: Jul 2006
Location: New Zealand
Distribution: Fedora 17 64bit (Desktop) Fedora 15 (Laptop)
Posts: 98

Rep: Reputation: 17
Cool yum command to exclude some updates?

Hi all

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.

Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 12-06-2006, 03:41 PM   #2
Senior Member
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
Yes, you can exclude packages by name - see the man page for yum.
Old 12-06-2006, 03:53 PM   #3
Registered: Jul 2006
Location: New Zealand
Distribution: Fedora 17 64bit (Desktop) Fedora 15 (Laptop)
Posts: 98

Original Poster
Rep: Reputation: 17
Thanks for that

yum --exclude=firefox --exclude=kernel update

Will try this when I get home


Last edited by gimmee; 12-07-2006 at 12:04 AM.
2 members found this post helpful.
Old 01-29-2010, 04:21 AM   #4
LQ Newbie
Registered: Nov 2007
Posts: 1

Rep: Reputation: 4
If you want exclude php and mysql then open

vi /etc/yum.conf

Append the following

exclude=php* mysql*

It will look like

exclude=php* mysql*
# Note: yum-RHN-plugin doesn't honor this.

# Default.
# installonly_limit = 3

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d

Another Example

To exclude i686 packages
Just add

Command line option

You can exclude packages in comman line also
Just Add
yum --exclude=php* update

will exclude php from update
4 members found this post helpful.
Old 01-29-2010, 05:16 AM   #5
John VV
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,452

Rep: Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601
PLEASE do not dig up and post to 4 year old threads
Old 10-29-2010, 12:01 PM   #6
LQ Newbie
Registered: Oct 2010
Posts: 1

Rep: Reputation: 1

Thank you.

@John VV

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.

Last edited by CarlMGregory; 10-29-2010 at 12:06 PM. Reason: Explain why John VV is wrong.
1 members found this post helpful.
Old 01-06-2013, 10:15 AM   #7
LQ Newbie
Registered: Jan 2013
Posts: 4

Rep: Reputation: Disabled
sometimes it's good to dig up. I've used this post after 6 years
1 members found this post helpful.
Old 03-26-2013, 01:52 PM   #8
LQ Newbie
Registered: Mar 2013
Posts: 2

Rep: Reputation: Disabled
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.
1 members found this post helpful.
Old 03-16-2014, 03:15 AM   #9
lost dragon
LQ Newbie
Registered: Jun 2008
Location: washington
Distribution: mandrake 2008.1
Posts: 24

Rep: Reputation: 15

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


yum, yum update

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem doing software updates using yum command, pls help ravifrequent Fedora 3 09-01-2006 03:59 AM
Fedora yum exclude problem Fedora 8 07-24-2006 07:45 PM
Exclude updating apps software using yum jojojo Linux - Newbie 1 06-12-2006 02:32 PM
yum exclude not working aoconnor Linux - Software 2 03-16-2006 12:33 PM
Howto exclude during yum update mohapi Fedora 4 07-02-2004 10:19 AM > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 11:38 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration