Install Security Patches or Updates Automatically on Rocky or AlmaLinux 8

Keeping your operating systems up to date with the latest software and security patches is one of the easiest methods to improve security. As a result, deploying updates regularly is a vital aspect of keeping systems secure. However, many users don’t know about the updates, and their system gets old as compared to the latest security patches. So in this blog, we will explain the method to install security patches or updates automatically on Rocky or AlmaLinux.

Install Security Patches or Updates Automatically on AlmaLinux 8 or Rocky Linux

Step 1: First of all, open the terminal execute the following command to keep your system up-to-date:

sudo dnf check-update

or

sudo dnf update -y

 Run system update Rocky or Almalinux min

 

Step 2: After that, use the following command to  update the EPEL repository (Extra Packages for Enterprise Linux):

sudo dnf install epel-release -y

Install EPEL on Rocky Linux 8

 

Step 3: Now, we can automate the security patches update by executing the below command:

sudo dnf install dnf-automatic

automate the security patches update on Rocky or Almalinux min

 

Step 4: By running the following command, you can verify the dnf-automatic after successful installation.

rpm -qi dnf-automatic

As you can see in the above image, the package manager has an “automated upgrades” privilege.

dnf automatic RHEL Linux min

 

Step 5: For updating and enabling dnf-automatic service, use the below-given command:

sudo systemctl enable --now dnf-automatic.timer

enabling dnf automatic service min

If you want to check the status of the automatic update process, then use this command:

sudo systemctl list-timers *dnf-*

status of the automatic update process min

 

Conclusion

To safeguard your systems from harmful attacks, you must apply security upgrades. Installing software updates is also vital in the long run, not just to gain access to new features but also to stay secure against security flaws detected in outdated programs. Furthermore, it is in your best interest to install all additional updates that may make your machine vulnerable to attack.

 

 

 

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.