LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 01-12-2009, 03:51 PM   #1
eodchop
LQ Newbie
 
Registered: Nov 2008
Posts: 14

Rep: Reputation: 0
Can yum override an exclusion in the /etc/yum.conf directory


I had to add exclude=kernel* xen* to /etc/yum.conf for several of my virtual machines to prevent kernel and xen upgrades from breaking apache 1. Is there a way im yum to override the exclusions? ie yum -force update?

Last edited by eodchop; 01-12-2009 at 03:52 PM.
 
Old 01-12-2009, 05:10 PM   #2
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,458

Rep: Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941
Recent versions of yum have the --disableexcludes=[all|main|repoid] option. The argument of the option is all if you want disable all the excludes defined in yum.conf, main or repoid if you want to disable the excludes in the main or in a repository section respectively. This is still a very poor documented option since it has been included in very recent releases. If you don't have it, you can either try to install the latest release of yum or just comment out the exclude option in /etc/yum.conf every time you need it.
 
Old 01-14-2009, 09:53 AM   #3
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
So that would be;
`yum –disableexcludes=all update`
or
`yum –disableexcludes=all update kernel`
or you can do it as;
`yum --exclude=package* update`.
 
Old 12-05-2013, 05:44 PM   #4
herbmanafet
LQ Newbie
 
Registered: Dec 2013
Posts: 1

Rep: Reputation: Disabled
Error in the above, should be two dashes, not one:

`yum --disableexcludes=all update`
or
`yum --disableexcludes=all update kernel`
 
  


Reply


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 after yum yum yum (delicious) alaios Fedora 3 01-14-2009 02:34 AM
yum.conf - extract files from a DVD. How define repo location and what is yum command emuub Linux - Software 2 06-17-2007 07:28 AM
yum.conf carlosinfl Fedora 1 01-29-2005 08:05 AM
FC2 yum updated to 2.1.11 need new yum.conf? peregrine2 Linux - Newbie 1 12-02-2004 07:14 AM
Yum Errors in parsing, whats wrong here (yum.conf pasted) thejokker Linux - Newbie 1 06-15-2004 02:28 AM


All times are GMT -5. The time now is 11:43 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