Keeping your server updated is critical for security and stability.
Ubuntu / Debian
apt update && apt upgrade -yAlmaLinux / Rocky Linux / CentOS
dnf update -yAutomatic Security Updates
On Ubuntu, enable unattended upgrades:
apt install unattended-upgrades -y
dpkg-reconfigure -plow unattended-upgradesBest Practices
- Update at least weekly
- Review changelogs for major updates
- Reboot after kernel updates
- Test updates on a staging server first for production systems