| Fedora This forum is for the discussion of the Fedora Project. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-06-2006, 03:35 PM
|
#1
|
|
Member
Registered: Jul 2006
Location: New Zealand
Distribution: Fedora 17 64bit (Desktop) Fedora 15 (Laptop)
Posts: 98
Rep:
|
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.
|
12-06-2006, 03:41 PM
|
#2
|
|
Senior Member
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075
Rep:
|
Yes, you can exclude packages by name - see the man page for yum.
|
|
|
|
12-06-2006, 03:53 PM
|
#3
|
|
Member
Registered: Jul 2006
Location: New Zealand
Distribution: Fedora 17 64bit (Desktop) Fedora 15 (Laptop)
Posts: 98
Original Poster
Rep:
|
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.
|
01-29-2010, 04:21 AM
|
#4
|
|
LQ Newbie
Registered: Nov 2007
Posts: 1
Rep:
|
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.
|
01-29-2010, 05:16 AM
|
#5
|
|
Guru
Registered: Aug 2005
Posts: 9,692
|
itsme_sujith
PLEASE do not dig up and post to 4 year old threads
|
|
|
|
10-29-2010, 12:01 PM
|
#6
|
|
LQ Newbie
Registered: Oct 2010
Posts: 1
Rep:
|
@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.
|
|
|
|
01-06-2013, 10:15 AM
|
#7
|
|
LQ Newbie
Registered: Jan 2013
Posts: 4
Rep: 
|
sometimes it's good to dig up. I've used this post after 6 years 
|
|
|
|
03-26-2013, 01:52 PM
|
#8
|
|
LQ Newbie
Registered: Mar 2013
Posts: 2
Rep: 
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:59 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|