Server updates fix software defects and security vulnerabilities. On an unmanaged Linux server, you are responsible for applying them and checking that the hosted services still work afterwards.

Prepare for the update

  1. Confirm that your operating system release is still supported.
  2. Check for a recent backup and a working recovery console.
  3. Review application and control-panel compatibility requirements.
  4. Arrange a maintenance window if services may restart.

CentOS Linux 7 and 8 are retired. Updating their existing packages does not restore normal vendor support; moving to a supported platform needs a separate migration plan.

Update Debian or Ubuntu packages

sudo apt update
sudo apt upgrade

Review the proposed changes before confirming. Resolve repository or dependency errors before continuing.

Update a supported DNF-based system

On a supported Fedora, AlmaLinux, Rocky Linux or CentOS Stream system using DNF:

sudo dnf upgrade --refresh

Review the transaction before confirming. Use repositories approved for the installed operating system and control panel.

Check the result

Read the update output and check the affected services. Reboot during the maintenance window if the update or operating system requires it, then test websites, mail and scheduled tasks.

Routine package updates are different from upgrading to a new operating system release. Follow the distribution and control-panel upgrade process for that work.

Plan automatic updates

If you need automatic updates, use the distribution’s supported update service and configure its scope, notifications and restart policy. A root cron job that accepts every package change without review is not a complete update policy.