Linux Tip: Update Everything with One Command (apt update && apt upgrade)

On Ubuntu and other Debian-based Linux systems, you do not need to hunt through menus to update everything. One line in the terminal checks for updates and installs them all — apps, system files, and security fixes included.

Run the update

  1. Open the terminal with Ctrl + Alt + T.
  2. Type sudo apt update && sudo apt upgrade and press Enter.
  3. Type your password when asked. Nothing shows on screen as you type — that is normal.
  4. Press Y and Enter when it lists the updates and asks if you want to continue.

What the two parts do

  • sudo apt update — refreshes the list of available updates. It does not install anything yet.
  • apt upgrade — downloads and installs everything on that fresh list.
  • The && in the middle — means “only run the second part if the first part worked,” so you never install from a stale list.

Good habits

  • Run it weekly: most security fixes land this way, and a quick weekly run keeps the job small.
  • Reboot when asked: if a kernel update was installed, restart so it takes effect.
  • On other systems: Fedora uses sudo dnf upgrade and Arch uses sudo pacman -Syu for the same one-command idea.

One command, a minute or two, and your whole system is up to date.

Filed under: Computer Tips