Updating Software Automatically

The DNF Automatic tool is provided as an extra package that you can use to keep the system automatically updated with the latest security patches and bug fixes. The tool can provide notifications of updates, download updates, and then install them automatically by using systemd timers.

See the dnf-automatic(8) manual page for more information.

Important:

By using Oracle Ksplice, you can keep an Oracle Linux kernel patched and updated all the time, without any need to reboot. For Oracle Linux Support customers, Ksplice is an essential tool to keep the systems safe, secure, and updated. See Oracle Linux: Ksplice User's Guide for more information.

  1. Install the dnf-automatic package.
    sudo dnf install -y dnf-automatic
  2. Enable the systemd dnf-automatic.timer timer unit to start using the service.
    sudo systemctl enable --now dnf-automatic.timer
    Optionally run other timer units to override the default configuration. Often, these timer units are used as handy shortcuts to perform a specific behavior:
    • dnf-automatic-notifyonly.timer: Notifies for available updates

    • dnf-automatic-download.timer: Downloads package updates, but doesn't install them

    • dnf-automatic-install.timer: Downloads and automatically installs package updates

    You enable the required behavior by running:

    sudo systemctl enable --now dnf-automatic-install.timer         
  3. Configure the DNF Automatic tool by editing the /etc/dnf/automatic.conf configuration file and then restarting the timer unit.