I've just gone through my servers and installed yum-cron (and then enabled with chkconfig yum-cron on
since that doesn't seem to happen automatically).
Now I realise that I'm running a MongoDB cluster and that automatically upgrading the mongo-server packages could break and/or corrupt data.
I have considered adding exclude=mongo*
to my yum.conf
file to skip all mongo upgrades, but I would love to still be able to run yum upgrade
manually and get all packages updated.
Is there a neat way of achieving this?
The previous Jason answer is working for centos 6.x.
For centos 7 and
yum-cron
package, the config file is/etc/yum/yum-cron.conf
. If you wish to exclude some packages from auto-update mechanism, you'll have to add anexclude
line, at the bottom of the file, in thebase
section.Example :
This will override the
yum.conf
options, but only in theyum-cron
context, which is the goal of this thread.In
/etc/sysconfig/yum-cron
, there is an option calledYUM_PARAMETER=
which you can use to passyum
parameters to. For example:The scope of that parameter seems to be limited to the
yum-cron
package.