L
L
littleguga2015-07-24 17:30:59
System administration
littleguga, 2015-07-24 17:30:59

How to update vps correctly?

How to properly/safely update vps?
There is an idea to add a task to crontab - once a week

apt-get update
apt-get upgrade
reboot

or is this a bad idea?
Thanks in advance for your advice!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2015-07-24
@littleguga

OS security updates will install themselves, but will not reboot the system
. Just in case, you should check if the feature with auto-updates is enabled for you
spin.atomicobject.com/2014/08/04/debian-ubuntu-sec...
https://help.ubuntu .com/community/AutomaticSecurit...

// Automatically upgrade packages from these (origin:archive) pairs
Unattended-Upgrade::Allowed-Origins {
        "${distro_id}:${distro_codename}-security";  // данная строчка раскоментированна
//      "${distro_id}:${distro_codename}-updates";
//      "${distro_id}:${distro_codename}-proposed";
//      "${distro_id}:${distro_codename}-backports";
};

Update everything else with handles
Reboot is better under your control.
Especially since there is not much vps

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question