Keeping packages updated helps patch security issues and keeps server tools compatible. Run updates during a maintenance window if the VPS hosts game servers, databases, panels, bots, or live websites.

Connect over SSH first: How to connect to a Linux VPS with SSH.

Take a VPS backup before major updates if the server is important: How to back up and restore your VPS.

 

Ubuntu or Debian

  1. Refresh the package list:
sudo apt update
  1. Install available updates:
sudo apt upgrade

Ubuntu VPS terminal showing apt update and apt upgrade output

 

AlmaLinux, Rocky Linux, Oracle Linux, or CentOS

Use dnf on current RHEL-style distributions:

sudo dnf update

If dnf is not available on an older image, use yum:

sudo yum update

 

What the commands do

CommandMeaning
apt updateRefreshes the package index so the VPS knows what updates are available.
apt upgradeInstalls available package updates on Ubuntu or Debian.
dnf updateInstalls available package updates on AlmaLinux, Rocky Linux, Oracle Linux, and similar systems.

 

After updating

  • Restart services that were updated.
  • Reboot the VPS if the kernel, system libraries, or security updates require it.
  • Start game servers again and check their logs before telling players the VPS is ready.
  • If something breaks, use your backup or check package logs before making more changes.
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to connect to a Linux VPS with SSH

SSH is the normal way to manage a Linux VPS. It gives you a terminal on the server so you can...

How to create a sudo user on a Linux VPS

A sudo user lets you manage a Linux VPS without logging in as root for every task. This is safer...

How to secure SSH on a Linux VPS

SSH is the main way to manage a Linux VPS, so it should be secured before the server is used for...

How to check disk usage on a Linux VPS

Disk usage issues can stop updates, backups, logs, databases, and game saves from writing...

How to check CPU and RAM usage on a Linux VPS

High CPU or RAM usage can cause lag, slow command responses, failed updates, or game servers...