Skip to content
BENIBIX Learn

Advanced Package Tool (APT)

Infrastructure⌨️ Linux & the Command LinePackage Management

Also known as apt, apt-get, apt install, apt update

The tool that adds and updates apps on Ubuntu. It fetches them for you.

Think of it like

Think of it like an app store you talk to with words. You name the app, and it fetches it.

Example

Emma sets up a new Ubuntu server. She runs sudo apt update, then sudo apt install nginx, and the web server is ready.

Why it matters

It is how software gets onto and stays fresh on most Linux servers you will rent.

Definition

APT is the package manager on Debian and Ubuntu. It installs, updates and removes apps with one command. apt update fetches the latest list of what is on offer. apt install then downloads a package and all it needs. apt upgrade brings each installed package up to date.

Example code

bash
sudo apt update
sudo apt install nginx
sudo apt upgrade
Fetch the latest list, then add one app. Last, bring all your apps up to date.
APT fetches the list, then the package, then installs it. Upgrades come from the same place.

Common mistake

Running apt install without apt update first. The old list may point to files that are gone.

Key takeaways

  1. 1
    Update the list. apt update comes first.
  2. 2
    Needs come too. It installs what a package needs.
  3. 3
    Upgrade often. Fixes arrive as updates.

Learn it properly