LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (http://www.linuxquestions.org/questions/fedora-35/)
-   -   Can yum override an exclusion in the /etc/yum.conf directory (http://www.linuxquestions.org/questions/fedora-35/can-yum-override-an-exclusion-in-the-etc-yum-conf-directory-696831/)

eodchop 01-12-2009 03:51 PM

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?

colucix 01-12-2009 05:10 PM

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.

alan_ri 01-14-2009 09:53 AM

So that would be;
`yum –disableexcludes=all update`
or
`yum –disableexcludes=all update kernel`
or you can do it as;
`yum --exclude=package* update`.

herbmanafet 12-05-2013 05:44 PM

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

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


All times are GMT -5. The time now is 09:54 PM.