LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

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

Rep: Reputation: 16
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.

Cheers
 
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
hob
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
gimmee
Member
 
Registered: Jul 2006
Location: New Zealand
Distribution: Fedora 17 64bit (Desktop) Fedora 15 (Laptop)
Posts: 98

Original Poster
Rep: Reputation: 16
Thanks for that

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

Will try this when I get home

Cheers

Last edited by gimmee; 12-07-2006 at 12:04 AM.
 
1 members found this post helpful.
Old 01-29-2010, 04:21 AM   #4
itsme_sujith
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

[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
exclude=php* mysql*
# Note: yum-RHN-plugin doesn't honor this.
metadata_expire=1h

# 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
exclude=*i686


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
Guru
 
Registered: Aug 2005
Posts: 12,808

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

Rep: Reputation: 1
@itsme_sujith

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
astutus
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
dman77
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
Cool

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


Reply

Tags
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 marcel@kraan.net 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


All times are GMT -5. The time now is 01:42 AM.

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