Installing server updates
Keeping your server updated is one of the most critical steps in maintaining security and stability. Updates patch vulnerabilities, fix bugs, and improve performance. On unmanaged servers, you are responsible for applying updates manually.
Why Updates Matter
Section titled “Why Updates Matter”- Protect against newly discovered vulnerabilities (e.g., OpenSSL’s Heartbleed bug).
- Ensure compatibility with modern applications.
- Improve system performance and reliability.
- Reduce risk of data breaches and downtime.
Updating Linux Servers
Section titled “Updating Linux Servers”Ubuntu/Debian
Section titled “Ubuntu/Debian”-
Update package lists:
Terminal window sudo apt update -
Upgrade installed packages:
Terminal window sudo apt upgrade -
Apply full distribution upgrades:
Terminal window sudo apt dist-upgrade -
Reboot if kernel updates were applied:
Terminal window sudo reboot
CentOS/RHEL
Section titled “CentOS/RHEL”-
Update all packages:
Terminal window sudo yum updateor (on newer versions):
Terminal window sudo dnf update -
Reboot if kernel updates were applied:
Terminal window sudo reboot
Updating Windows Servers
Section titled “Updating Windows Servers”- Log in to the server via Remote Desktop.
- Open Windows Update from the Control Panel or Settings.
- Check for updates and install all critical patches.
- Reboot the server to apply changes.