How to Enable Automatic Software Updates on CentOS 8

How to Enable Automatic Software Updates on CentOS 8

Set up or enable automatic software updates on CentOS 8; Through this tutorial, we will learn how to enable or setup automatic software updates on centOS 8.

How to Enable Automatic Software Updates on CentOS 8

Just follow the following steps to enable or set up automatic software updates on centOS 8:

  • Step 1- Install dnf-automatic RPM Library
  • Step 2 – Configure dnf-automatic updates
  • Step 3 – Enable dnf-automatic

Step 1- Install dnf-automatic RPM Library

First of all, open terminal and execute the following command into it to install dnf automatic RPM libraries in centOS 8:

sudo dnf install -y vim dnf-automatic

To get more details on the library by executing the following command on termnal:

rpm -qi dnf-automatic

Step 2 – Configure dnf-automatic updates

To configuration file is /etc/dnf/automatic.conf, The configuration file is located at /etc/dnf/automatic.conf. Once we have opened the file, we can to set the required values to fit software requirements.

[commands]
upgrade_type = default
random_sleep = 0
download_updates = yes
apply_updates = yes
[emitters]
emit_via = motd
[email]
email_from = [email protected]
email_to = root
email_host = localhost
[base]
debuglevel = 1

To enable the feature, disable apply_updates in the configuration file.

apply_updates = no

Step 3 – Enable dnf-automatic

Once the above process has been finished, now execute the following command on terminal to enable dnf automatic updates:

sudo systemctl enable --now dnf-automatic.timer

To check the status of the dnf-automatic service, run the following.

systemctl list-timers *dnf-*

Conclusion

Through this tutorial, we have learned how to enable or set up automatic software updates on centOS 8.

Recommended CentOS Tutorials

AuthorAdmin

Greetings, I'm Devendra Dode, a full-stack developer, entrepreneur, and the proud owner of Tutsmake.com. My passion lies in crafting informative tutorials and offering valuable tips to assist fellow developers on their coding journey. Within my content, I cover a spectrum of technologies, including PHP, Python, JavaScript, jQuery, Laravel, Livewire, CodeIgniter, Node.js, Express.js, Vue.js, Angular.js, React.js, MySQL, MongoDB, REST APIs, Windows, XAMPP, Linux, Ubuntu, Amazon AWS, Composer, SEO, WordPress, SSL, and Bootstrap. Whether you're starting out or looking for advanced examples, I provide step-by-step guides and practical demonstrations to make your learning experience seamless. Let's explore the diverse realms of coding together.

Leave a Reply

Your email address will not be published. Required fields are marked *