Commands · Command

CommandLinux

apt

apt [command] package

The package manager for Debian-based distributions (Ubuntu, Debian, Mint, etc.) — installs, updates, and removes .deb packages.

// FLAGS

install / removeinstall or uninstall a package
updaterefresh the list of available packages/versions (does NOT upgrade anything by itself)
upgradeactually install newer versions of packages
searchfind a package by name/keyword

// EXAMPLE

sudo apt update && sudo apt upgrade — refreshes package metadata, then upgrades every outdated package.

// GOTCHA

apt update only refreshes the local package index (what versions are available) — it does not install anything. Confusing update with upgrade is one of the most common package-management mix-ups.

// RELATED COMMANDS