Linux Auto-Update

How To Configure Automatic Updates?

In this Tutorial we will cover how to configure automatic updates on CentOS. It is essential that you keep your servers and desktops fully up to date. With the constant threat of attacks to systems, it is only a matter of time before you find your systems down, encrypted or even worse, your data completely lost.

Steps:

yum install yum-cron

[root@cen7 ~]# yum install yum-cron

Once Installation done enable cron services

Enable and start the Yum-cron

[root@cen7 ~]# systemctl enable yum-cron

Enable cron

[root@cen7 ~]# systemctl start yum-cron

Verify that the service is running

[root@cen7 ~]# systemctl status yum-cron

Go to yum library

There will be two configuration files inside the /etc/yum

Cd /etc/yum

There will be two options

yum-cron-hourly.conf           – hourly

yum-cron.conf                       – yearly

Open the yum-cron-hourly.conf file in your preferred text editor

[root@cen7 yum]# vi yum-cron-hourly.conf

Option 2:

[root@cen7 yum]# vi yum-cron.conf

Leave a Reply

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