yum-cron
package provides a convenient way to check for, download and apply updates automatically.yum-cron
package are active immediately after installing the package and there’s no extra configuration necessary. The job will be run when daily cron jobs are set to run.yum-cron
package# yum -y install yum-cron
# chkconfig yum-cron on
Then edit /etc/sysconfig/yum-cron
(RHEL 6) to set MAILTO=
email address or /etc/yum/yum-cron.conf
(RHEL 7) to set email_to=
for email notifications.
MAILTO=sys@example.com
email_to=sys@example.com
yum-cron
:-YUM_PARAMETER=kernel* mysql*
/etc/yum/yum-cron.conf
file.[base]
exclude=kernel* mysql*
[commands]
# What kind of update to use:
# default = yum upgrade
# security = yum --security upgrade
# security-severity:Critical = yum --sec-severity=Critical upgrade
# minimal = yum --bugfix upgrade-minimal
# minimal-security = yum --security upgrade-minimal
# minimal-security-severity:Critical = --sec-severity=Critical upgrade-minimal
update_cmd = security
To start yum-cron
service after editing configuration file.
For RHEL 6
# service yum-cron start
# systemctl start yum-cron
Article Number: 416
Posted: Fri, Oct 26, 2018 3:18 PM
Last Updated: Fri, Oct 26, 2018 3:18 PM
Online URL: http://kb.ictbanking.net/article.php?id=416