[pappy@chmodx]:$ man apt

$ 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

Examples

Refresh package indexes
sudo apt update
Upgrade installed packages
sudo apt upgrade
Install a package
sudo apt install nginx
Remove a package
sudo apt remove nginx

Important 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.