Q: What do I need to configure when running yum-cron on CentOS 7?
A:
- Make sure postfix is installed, autostarting and started.
- Install yum-cron.
- # yum install yum-cron
- Set autostart daemon.
- # systemctl enable yum-cron.service
- Start the daemon.
- # systemctl start yum-cron.service
- # systemctl status yum-cron.service
- Edit /etc/yum/yum-cron.conf.
- Check and change as appropriate the following lines:
- update_cmd = default
- update_messages = yes
- download_updates = yes
- apply_updates = no
- random_sleep = 0
- emit_via = email
- email_from = root@localhost>
- email_to =
This email address is being protected from spambots. You need JavaScript enabled to view it. - email_host = smtp.uu.se
- Restart the daemon for good measure.
- # systemctl stop yum-cron.service
- # systemctl start yum-cron.service
- Done.
Source: https://linuxaria.com/howto/enabling-automatic-updates-in-centos-7-and-rhel-7
Alse see Nightly linux updates doesn't work, Yum-cron settings for CentOS 6.