1. Install and configure yum-updatesd
1 | # yum install yum-updatesd mailx ssmtp # Or msmtp |
We want only be notified of new updates. We want not to install them automatically. Your /etc/yum/yum-updatesd.conf should be similar to this:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | [main] # how often to check for new updates (in seconds) run_interval = 3600 # how often to allow checking on request (in seconds) updaterefresh = 600 # how to send notifications (valid: dbus, email, syslog) emit_via = email # who to send the email notifications to email_to = someuser@thebc.ch # who send the notifications email_from = someuser@thebc.ch # should we listen via dbus to give out update information/check for # new updates dbus_listener = yes # automatically install updates do_update = no # automatically download updates do_download = no # automatically download deps of updates do_download_deps = no |
2. Configure ssmtp
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | # # Config file for sSMTP sendmail # # The person who gets all mail for userids < 1000 # Make this empty to disable rewriting. root=someuser@thebc.ch # The place where the mail goes. The actual machine name is required no # MX records are consulted. Commonly mailhosts are named mail.domain.com mailhub=mailbox.thebc.ch # In most cases it will be better do give here the IP-address of your mailserver # Where will the mail seem to come from? #rewriteDomain= # The full hostname hostname=thisserver.thebc.ch # Are users allowed to set their own From: address? # YES - Allow the user to specify their own From: address # NO - Use the system generated From: address # FromLineOverride=YES |
3. Test Your config
1 | # yum-updatesd --no-fork --oneshot --debug |
4. Enable and start yum-updatesd
1 | # systemctl enable yum-updatesd |
1 | # systemctl start yum-updatesd |