LinuxQuestions.org
Register a domain and help support LQ
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
 
LinkBack 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: 3
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
 
3 members found this post helpful.
Old 01-29-2010, 05:16 AM   #5
John VV
Guru
 
Registered: Aug 2005
Posts: 9,692

Rep: Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121
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: 0
@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.
 
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
 
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.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 04:59 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
Open Source Consulting | Domain Registration