Contents

Rocky9 Auto Update

Contents

To do auto updates on Rocky9 you need to configure dnf-automatic.

First install the package.

sudo dnf install -y dnf-automatic

Now edit the config file.

sudo vi /etc/dnf/automatic.conf

Set the options like the following to reboot the os as needed and apply the updates.

  upgrade_type = default
  apply_updates = yes
  reboot = when-needed

Now turn on automatic updates via a timer in systemd

sudo systemctl enable --now dnf-automatic.timer