$ apt
Command-line interface for the package management system
DOCUMENTEDPackagesUbuntu 24.04 LTS baseline
Use care. Package-management commands can install, remove, upgrade, or otherwise change software on the system. Review the proposed changes before confirming them.
Synopsis
apt [options] command
What it does
- `apt` provides a high-level command-line interface to the Debian package management system.
- `apt update` refreshes package indexes; it does not itself install updates.
Examples
Refresh package indexes
sudo apt updateUpgrade installed packages
sudo apt upgradeInstall a package
sudo apt install nginxRemove a package
sudo apt remove nginxImportant details
These examples are intentionally conservative. Command behavior can still depend on filesystem state, permissions, locale, shell, installed package version, and other system configuration.
For exact option semantics, the linked authoritative documentation is the source of truth.