Cybersecurity

Update Linux safely

Check /etc/os-release, back up, and read the vendor guide.

Systems and devices Author · Iulian Aldea ·
Editorial date · 2026-11-29

Visual example for: Update Linux safely
  1. Check the distribution and release, free disk space, and whether you have a tested backup.
  2. cat /etc/os-release and df -h / /boot
  3. On Debian or Ubuntu, refresh package metadata and review the proposed changes before confirming.
  4. sudo apt update && sudo apt upgrade
  5. On AlmaLinux use DNF and review the packages before confirming.
  6. sudo dnf upgrade
  7. For a major release upgrade, follow the distribution procedure. After reboot check uname -r and systemctl --failed.

All guides