What is yum-cron ?

What is yum-cron ?

Solution Verified - Updated -


  • Red Hat Enterprise Linux Server 6.x
  • Red Hat Enterprise Linux Server 7.x


  • The yum-cron package provides a convenient way to check for, download and apply updates automatically.
  • The cron jobs from the 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.


  • To install 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.

    • For RHEL 6
  • For RHEL 7
  • To exclude packages using yum-cron:-
  • For RHEL 6
YUM_PARAMETER=kernel* mysql*
  • For RHEL 7 edit below option in the base section of /etc/yum/yum-cron.conf file.
exclude=kernel* mysql*
  • For RHEL 7 use following option in yum-cron configuration file to install security updates.
#  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
  • For RHEL 7
# systemctl start yum-cron
  • Component
  • yum
0 (0)
Article Rating (No Votes)
Rate this article
There are no attachments for this article.
There are no comments for this article. Be the first to post a comment.
Full Name
Email Address
Security Code Security Code
Related Articles RSS Feed
12 Linux Rsync Options in Linux Explained
Viewed 10697 times since Wed, Oct 31, 2018
Improve security with polyinstantiation
Viewed 12076 times since Fri, May 15, 2020
HP-UX - Stunnel Configuration
Viewed 1882 times since Fri, Sep 28, 2018
ZFS: Remove an existing zfs filesystem
Viewed 1517 times since Sun, Jun 3, 2018
How To Find Largest Top 10 Files and Directories On Linux / UNIX / BSD find
Viewed 2002 times since Mon, Oct 29, 2018
RHEL: Retrieve and generate a unique SCSI identifier
Viewed 2359 times since Sat, Jun 2, 2018
Linux - How to unlock and reset user’s account
Viewed 2372 times since Fri, Jun 8, 2018
LUKS dm-crypt/Device encryption GUIDE
Viewed 1670 times since Fri, Jul 13, 2018
How To Add Swap Space on Ubuntu 16.04
Viewed 1872 times since Fri, Jun 8, 2018
logrotate Understanding logrotate utility
Viewed 1309 times since Sun, Jan 12, 2020