Docs / Server Management / How to Update Your Linux Server

How to Update Your Linux Server

By Admin · Feb 25, 2026 · Updated Apr 23, 2026 · 56 views · 1 min read

Keeping your server updated is critical for security and stability.

Ubuntu / Debian

apt update && apt upgrade -y

AlmaLinux / Rocky Linux / CentOS

dnf update -y

Automatic Security Updates

On Ubuntu, enable unattended upgrades:

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

Best Practices

  • Update at least weekly
  • Review changelogs for major updates
  • Reboot after kernel updates
  • Test updates on a staging server first for production systems

Was this article helpful?