Winnie Lacesso writes:
yum-autoupdate config file has an exclude line in it; yum-cron's doesn't.
On Thu, 19 Jul 2012, Alec T. Habig wrote:
Sure it does. yum does this at a higher level than any scripts one
might write: having this information in contradictory places isn't good
(and has confused be before with the SL cron jobs). For example, in my
laptop's /etc/yum.conf is the line:
exclude=krb5-devel,krb5-workstation,krb5-libs,NetworkManager-glib,NetworkManager
Another advantage of yum-cron is that it uses yum-shell to execute the
update as a transaction. The yum-shell script that it executes is:
/etc/yum/yum-daily.yum
I prefer to add exclusions there instead of /etc/yum.conf .
e.g. on web-server that uses php you might want to exlude auto-updates
of httpd, mod_*, php* so I would modify /etc/yum/yum-daily.yum
to look like this:
list updates httpd mod_* php php-*
config exclude httpd mod_* php php-*
update
ts run
exit
The default version has the last three lines and I prepend the first
two. When run from yum-shell, "list updates" only produces output of
their are pending updates. Since the whole thing is run from cron,
output generates an e-mail to root. So you will only get an e-mail if
there are pending updates and also if there are any errors during a
normal update.
Hope this helps.
Kel Raywood
TRIUMF