[Yum] Yum cron defaults

Garrick Staples garrick at usc.edu
Mon Jan 5 18:32:09 UTC 2004

On Mon, Jan 05, 2004 at 07:52:51AM -0500, Hedemark, Magnus alleged:
> Josko Plazonic [mailto:plazonic at Math.Princeton.EDU] said:
> I would be *completely* happy with syslogging everything rather than
> emailing it.  That way I could use something like logwatch against my
> central syslog server to consolidate package reporting (something like
> "Package foo was upgraded 224 times" rather than seeing 224 emails each
> saying that the package "foo" was upgraded).
> But if this were accepted as an enhancement, one thing I would ask is to
> make it a modular thing.  i.e. some people might want to log to syslog, some
> to snmp trap, others still to an http post.  So rather than hard code the
> logging to one form of output, put the hooks there to call an external
> function or script.  That would give us the most flexibility in figuring out
> how to track client package upgrades without having to be "spammed" :)

The "hooks" are called stdout.  Just make the cronjob do whatever you want.

yum ... | whateveryouwant
yum update | logger -t yum

Garrick Staples, Linux/HPCC Administrator
University of Southern California

More information about the Yum mailing list