Automatic security updates help keep a Linux VPS patched without requiring you to manually run updates every day. They are useful for public-facing VPS servers, but you should still take backups before major software changes.

Automatic updates are best for security patches. They do not replace planned maintenance for game servers, panels, databases, or large application upgrades.

 

Ubuntu or Debian

  1. Install unattended upgrades:
sudo apt update
sudo apt install unattended-upgrades
  1. Enable the prompt:
sudo dpkg-reconfigure unattended-upgrades

Choose Yes when asked whether to automatically download and install stable updates.

Check the config if you need to adjust behaviour:

sudo nano /etc/apt/apt.conf.d/50unattended-upgrades

Ubuntu VPS terminal showing apt package update output

 

AlmaLinux, Rocky Linux, Oracle Linux, or CentOS

sudo dnf install dnf-automatic
sudo systemctl enable --now dnf-automatic.timer

Check the configuration file before relying on it:

sudo nano /etc/dnf/automatic.conf

 

Restart-sensitive services

Security updates can replace libraries used by running services. Schedule manual restarts for game servers, web servers, and databases during quiet periods if needed.

If you run a heavily modded game server or custom application, test updates on a quiet schedule and keep backups before making large changes.

  • 0 Utilizadores acharam útil
Esta resposta foi útil?

Artigos Relacionados

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 update packages on a Linux VPS

Keeping packages updated helps patch security issues and keeps server tools compatible. Run...

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...