Last updated on: 2019-04-01
Authored by: Ruth Lee
Auter provides automatic updates for Red Hat Enterprise Linux, CentOS, and Fedora Linux servers. Auter provides flexible scheduling to ensure that updates and reboots happen when you want them to. It enables you to customize how updates run: you can download updates before you can apply them, and you can run custom scripts before and after the updates. Auter is a more flexible option than yum-cron or dnf-automatic. This article describes how to install and configure the Auter package on CentOS 6. Minor adjustments might be required for other OSs and other major releases of CentOS.
Note: The following steps are specific to CentOS 6. For other distributions, use that distribution’s equivalent command.
Install the package on your server:
sudo yum install auter
Enable autoreboot by opening the /etc/auter/auter.conf and changing the
AUTOREBOOT field from the default of
Configure update times by editing a cron file in the /etc/cron.d/auter directory.
The default installation contains some examples, which are commented out. Remove the preceding # from each line that you want to apply. At a minimum you must uncomment one line from the
Preparing package downloads section and one line of the
Executing updates section.
You can use the following command to see which options are enabled:
egrep -v '^#|^$' /etc/cron.d/auter
Following is an example of the output that the preceeding command might return:
30 1 2 * * root /usr/bin/auter --prep # On the 2nd of every month 30 1 14 * * root /usr/bin/auter --apply # On the 14th of every month
The scheduling is based on cron syntax, so if you require a time that is not listed as an example you can manually configure the time.
If any of your applications require specific steps to be performed before shutdown or after reboot, configure these by placing the necessary scripts in the correct location. You can specify a nondefault location in /etc/auter/auter.conf. Default locations are as follows:
PREAPPLYSCRIPTDIR="/etc/auter/pre-apply.d" POSTAPPLYSCRIPTDIR="/etc/auter/post-apply.d" PREREBOOTSCRIPTDIR="/etc/auter/pre-reboot.d" POSTREBOOTSCRIPTDIR="/etc/auter/post-reboot.d"
Test that your server reboots without any errors. Run the following commands to manually perform an Auter patching run:
auter --prep auter --apply
Auter is now configured on your system to automatically apply updates at the specified time and reboot the server after application.
You can find more information about different configuration options in the Auter GitHub repository.
©2020 Rackspace US, Inc.
Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License