Linux · System
Keep your distribution's packages current
Unlike Windows or macOS, Linux updates are handled by your distribution's package manager rather than one built-in updater — the exact tool differs by distro, but the underlying idea (refresh the package index, then upgrade installed packages) is the same everywhere.
What you should know
- Debian/Ubuntu-based systems: `sudo apt update && sudo apt upgrade` from a terminal, or the graphical "Software Updater"/"Update Manager" app.
- Fedora/RHEL-based systems: `sudo dnf upgrade`, or the graphical "Software" app's Updates tab.
- Arch-based systems: `sudo pacman -Syu`.
- Most desktop environments also show a notification icon when updates are available.
A kernel update usually requires a reboot to actually take effect, even though the update itself completes without one.
Why it matters
Distros ship security patches through the same package manager as everything else — deferring updates leaves known vulnerabilities unpatched, and skipping too many releases in a row can turn a routine upgrade into one with much larger version jumps to reconcile at once.
Best practices
- Update at least weekly, and right away for anything flagged as a security update.
- Reboot after a kernel or graphics-driver update rather than leaving the old one running until your next restart.
- Read the changelog before a major distro version upgrade (e.g. Ubuntu 22.04 → 24.04) — these are bigger jumps than a routine package update.
Common problems and fixes
- "Held broken packages" or dependency conflict during upgrade
- Run your package manager's built-in fix command first (e.g. `sudo apt --fix-broken install` on Debian/Ubuntu) before retrying the upgrade.
- Update seems to hang with no output
- It's often waiting on a package-manager lock held by another process (e.g. a background update check) — wait a minute, or check for a stuck `apt`/`dpkg` process before force-killing anything.
Tips and tricks
- Most distros can be configured to install security updates automatically in the background — worth turning on even if you keep feature updates manual.
Frequently asked questions
Do I need to update every app individually?
No — apps installed through your distro's package manager update together with the system. Apps installed via Flatpak or Snap update separately through their own tools (`flatpak update` / `snap refresh`).