Updating the system on a VPS with ISPmanager

Updates close vulnerabilities. Run them every 1–2 weeks at a quiet time for the sites.

Before updating

  • A fresh backup: VPS backups.
  • Check there is free disk space: df -h /.

Ubuntu and Debian

apt update
apt list --upgradable
apt upgrade
[ -f /var/run/reboot-required ] && echo "reboot needed"

AlmaLinux, Rocky, CentOS Stream

dnf check-update
dnf upgrade
needs-restarting -r

What not to touch

  • Do not install or remove panel-managed software manually: web server, PHP, MySQL, email, DNS, FTP. Change them in "Software configuration": Software configuration.
  • Do not use apt full-upgrade / dist-upgrade or a release upgrade (do-release-upgrade) without a backup — that is an OS version change, not an update.
  • Update the panel itself with the dashboard button: Panel updates.
Panel update — separately, on the dashboard
Panel update — separately, on the dashboard

Reboot

After a kernel update a reboot is needed — the new kernel starts working only after it: Rebooting the server. Sites are unavailable for 1–3 minutes.

Automatic security updates

Ubuntu: the unattended-upgrades package installs security updates only.

apt install unattended-upgrades
dpkg-reconfigure -plow unattended-upgrades

Automatic ISPmanager updates are enabled in "System settings": Panel updates.

Questions and answers
Security updates — yes, apt upgrade installs them. Installing and removing versions — only via "Software configuration".
Yes, if the kernel was updated. Ubuntu signals it with /var/run/reboot-required.