{ 12 comments… read them below or add one }

1 Ben June 17, 2008 at 1:45 pm

Is there some way to override exclusions configured in the conf file when yum is run manually, short of removing or commenting the exclude entry in the conf files?

Say I’d like to automate the updates of most of my packages, but some subset of core packages I’d like to upgrade manually after I’ve had a chance to test the package.

Reply

2 Raj June 17, 2008 at 4:49 pm

Ben,

I’m afraid but it is not possible to achieve.

Reply

3 Bob August 28, 2008 at 7:30 pm

Ben,
I’m not sure what version of yum they added this, but:
`yum –disableexcludes=[all|main|repoid]`
or
`yum –disableexcludes=all update`
or
`yum –disableexcludes=all update kernel`

Reply

4 Christian Peper October 29, 2008 at 3:45 pm

Just a note, the switch -disableexcludes=all does no work on my RHEL 4u5 server.

Using yum-2.4.2-4…

Reply

5 Matt Schreiner July 3, 2009 at 4:24 pm

YUM version 3.2.19 in my REHL 5U3 box does have support for -disableexcludes

[root@cerberus etc]# yum –version
3.2.19

[root@cerberus etc]# man yum |grep -A4 -B1 excludes
–disableexcludes=[all|main|repoid]
Disable the excludes defined in your config files. Takes one of
three options:
all == disable all excludes
main == disable excludes defined in [main] in yum.conf
repoid == disable excludes defined for that repo

Might just try to update your YUM package and see if there is a 3.x package avail for REHL4 now and if not try to just install from source…

Reply

6 Bhavya September 30, 2009 at 7:18 am

Hi friends,
When I tried to run the cellsdkiso install or any of the yum commands i am getting this error please let me know what might have gone wrong for this.
I am Installing the IBM Cell SDK into fedora 9.
Config Error: Parsing file failed: File contains no section headers.
file: file:///etc/yum.conf, line: 1
‘\xef\xbb\xbf[main]\n’
Please See My Yum file below
[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
metadata_expire=1800
installonly_limit=2
exclude=blas blas-devel elfspe2 kernel lapack lapack-devel libspe2 libspe2-debuginfo libspe2-devel oprofile oprofile-devel

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d

Thanks & regards
Bhavya

Reply

7 Biwebco.com November 28, 2009 at 1:22 pm

One of the best sites devoted to practical programming.
thanks from newbie @nixCraft :)

Reply

8 Simon Smith January 4, 2010 at 6:15 pm

Thank you for this post!

Simon

Reply

9 CentOS January 16, 2010 at 12:02 am

Excluding httpd (apache) in CentOs:

yum –exclude=httpd*,httpd-manual*,mod_ssl* update

PS. httpd-manual and mod_ssl are htpd dependencies.

Reply

10 Eduardo Mozart de Oliveira January 30, 2013 at 11:07 pm

Thank you! I do not want that CentOS 5.8 automatically updates to 5.9 (Hyper-V Add-ons was not updates to 5.9 yet).
Adding “centos-release*” (without quotes) on /etc/yun.conf resolved my problem!

Reply

11 Hybrid Cloud April 18, 2013 at 2:31 pm

You should use following php option instead:

yum --skip-broken install php*

Reply

12 higkoo January 8, 2014 at 7:54 am

How to use yum to install via version package ?

ex:
There are Nginx-1.5.0 and Nginx-1.5.1 .
It will install 1.5.1 by default , but I want install 1.5.0 .

What can I do ?

Reply

Leave a Comment

Tagged as: , , , , , , , , , , , , ,

Previous Faq:

Next Faq: