Automatic OS Updates in CentOS

The yum dæmon is capable of controlling updates to fit a variety of scenarios.

The configuration file can be edited with

$ sudo vim /etc/yum/yum-updatesd.conf

Edit the file thus:

  • Change “emit_via = dbus” to “emit_via = email”. This tells the yum dæmon to use e-mail to send an alert.
  • Add “email_to =
  • Add “email_from =
  • Change do_download to yes if you want the yum dæmon to automatically download the updates.
  • Change do_download_deps to yes if you changed do_download to yes.

It should look similar to:

  # 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
  email_to =
  email_from =
  # 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 = yes
  # automatically download deps of updates
  do_download_deps = yes

One thought on “Automatic OS Updates in CentOS

  1. Pingback: Installing Zimbra 7 on CentOS « James Reuben Knowles

Leave a Reply