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
Script to Offline and Remove A Disk In Linux
Viewed 1761 times since Mon, Jan 28, 2019
How to convert RAW image to VDI and otherwise
Viewed 14616 times since Wed, Oct 3, 2018
ZPOOL: Create a new zpool for zfs filesystems
Viewed 1958 times since Sun, Jun 3, 2018
Fałszujemy rozpoznania skanerów #2
Viewed 2752 times since Mon, May 21, 2018
8 Vim Tips And Tricks That Will Make You A Pro User
Viewed 2733 times since Fri, Apr 19, 2019
logrotate Log Rotate Configuration
Viewed 2976 times since Sun, Jan 12, 2020
How to Synchronize Directories Using Lsyncd in Linux
Viewed 13210 times since Wed, Oct 31, 2018
Tips to Solve Linux & Unix Systems Hard Disk Problems
Viewed 3897 times since Fri, May 15, 2020
stunnel Howto A Guide to create SSL access to a HTTP-only webserver with stunnel
Viewed 2458 times since Fri, Sep 28, 2018
VMWare tools free
Viewed 8162 times since Mon, Jul 16, 2018