Lion Cipher Lab

Installing software and keeping Linux patched with apt

Why it matters

Two of the most common things you'll ever do on a Linux box are install software and keep it patched. On Debian and Ubuntu, one tool — apt — does both. Patching especially is not just tidiness: unpatched, out-of-date software is one of the most common ways real organizations get broken into, because attackers actively hunt for known flaws that a vendor has already fixed. Learning to update, upgrade, install, and remove packages cleanly is day-one literacy and a real security habit at the same time.

What you'll learn

Steps in this lab

  1. What a package manager is, and why apt
  2. Refresh the catalog first: apt update
  3. Apply the fixes: apt upgrade (this is the security step)
  4. Find software: apt search and apt show
  5. Install a package: apt install
  6. Remove cleanly: apt remove, autoremove, and purge
  7. Where software comes from: repositories, and trusting only good ones
  8. Let it patch itself: unattended-upgrades
  9. You can keep a Linux box current now — why that's a real skill

Open the full interactive lab →