• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Question yum update cron plesk

solucionesuno

Regular Pleskian
Hi,

Is a good idea create a cron yum -y update?

Every two weeks i have an advice tu update package, and i have to do it manually. I have a lot of servers, so it is a manually operation every day.

thanks for commments
 
Run yum -y install yum-cron

- > open /etc/sysconfig/yum-cron with an editor of your choice and edit:

Don't install, just check (valid: yes|no)
CHECK_ONLY=no

Check to see if you can reach the repos before updating (valid: yes|no)
CHECK_FIRST=no

# Don't install, just check and download (valid: yes|no)
# Implies CHECK_ONLY=yes (gotta check first to see what to download)
DOWNLOAD_ONLY=no

# randomwait is used by yum to wait random time
# default is 60 so yum waits random time from 1 to 60 minutes
# the value must not be zero
RANDOMWAIT="1"

# if MAILTO is set and the mail command is available, the mail command
# is used to deliver yum output

# by default MAILTO is unset, so crond mails the output by itself
# example: MAILTO=root
MAILTO=root

Time of the updates:

# you may set DAYS_OF_WEEK to the days of the week you want to run
# default is every day
DAYS_OF_WEEK="0123456"

save the file and close it.


- > service yum-cron start

- > chkconfig yum-cron on

If you have any questtions, please let me know.
 
Do you know you can automatically install system updates on a daily basis with Plesk?

https://docs.plesk.com said:
You can install updates of system packages via the Plesk's UI by using the System Updates tool. The tool uses the native functionality of operating system package managers, such as yum or apt, to install updates. This makes it easier for you to monitor and keep packages up-to-date.

[...]

The System Updates tool checks for updates on a daily basis and displays updates information in the list of packages and on the Plesk home page. It also sends notifications if you configured it so.

To update system packages automatically:
  1. Go to Tools & Settings > Server Management > System Updates > Settings.
    Alternatively, go to Tools & Settings > Update and Upgrade Settings.

  2. Select Automatically install system package updates.
(с) System Updates (Plesk for Linux only)
 
Back
Top