Discover How To Learn Tips And Tricks HOWTOs
How To Apply Updates Automatically With dnf-automatic In RHEL, AlmaLinux And Rocky Linux
Applying updates regularly should be the top priority in the day-to-day tasks of a System administrator. Running unpatched systems for a long time is quite risky. There are many ways to patch your Linux systems. Today, we will learn how to apply updates automatically with
dnf-automatic in RHEL and its clones like AlmaLinux and Rocky Linux.
dnf-automatic is an alternative to
dnf upgrade command which can be executed automatically and regularly via systemd timers, cron jobs and similar.
It synchronizes the package metadata as needed and then checks for updates available for your RHEL-based systems. Depending upon the configuration file settings,
dnf-automatic command either downloads the package updates, or downloads and installs the packages, or simply exits.