There was a problem loading the comments.

Update and reboot your Linux VPS safely (Ubuntu/Debian/RHEL-based)

Support Portal  »  Knowledgebase  »  Viewing Article

  Print

Keeping your Linux VPS updated is essential for security and stability. Below are safe update steps for common distributions.

1) Identify your distribution

cat /etc/os-release

2) Update packages

Ubuntu / Debian (APT)

sudo apt update
sudo apt upgrade

Optional (if recommended by your admin or for major dependency changes):

sudo apt full-upgrade

Cleanup:

sudo apt autoremove

AlmaLinux / Rocky / CentOS / RHEL (DNF/YUM)

sudo dnf upgrade

If your system uses yum:

sudo yum update

3) Check if a reboot is needed

A reboot is often required after kernel or core library updates.

  • Ubuntu: /var/run/reboot-required exists → reboot recommended.
  • In general: if you updated the kernel, plan a reboot.

4) Reboot safely

Before rebooting:

  • Make sure you have SSH access details saved.
  • If possible, do the reboot during a maintenance window.
  • If your VPS hosts critical services, consider making a backup/snapshot first.

Reboot command:

sudo reboot

5) After reboot: quick checks

  • Confirm the VPS is reachable via SSH.
  • Check service status (examples): systemctl status nginx, systemctl status apache2, systemctl status mysql.
  • Review logs if something did not start correctly.

Share via
Did you find this article useful?  

Related Articles


Comments

Add Comment

Replying to  

Tags

© GARMTECH