Is there any way to test whether yum-cron
is configured properly? I need to confirm that it will automatically install security patches and that it will email me when it does so.
I have a CentOS 7 web server with yum-cron
installed. It's been running for a few months and I haven't received any emails, nor do I see any updates in /var/log/yum.log
. I think this is because there haven't actually been any security updates affecting me. When I run yum --security list updates
I get the message No packages needed for security
, and I don't see any recent critical patches affecting me in centos-announce.
My /etc/yum/yum-cron.conf
looks something like the following, with a real email address instead of administrator@example.com
:
[commands]
update_cmd = security
update_messages = yes
download_updates = yes
apply_updates = yes
[emitters]
emit_via = stdio,email
[email]
email_from = root@localhost
email_to = root,administrator@example.com
email_host = localhost