apt is used for package management or system administration in the Debian family. Consult the distribution manual for release-specific behaviour.
sudo apt updateapt is used for package management or system administration in the Debian family. Consult the distribution manual for release-specific behaviour.
apt [options] commandapt is used for package management or system administration in the Debian family. Consult the distribution manual for release-specific behaviour.
sudo apt updateShow command help and options where supported.
apt --help| Option / clause | Description |
|---|---|
update | Refresh package indexes; this does not install upgrades. |
install <package> | Install a package and its dependencies. |
remove / purge <package> | Remove a package; purge also removes its configuration files. |
-y, --assume-yes | Answer prompts automatically; inspect the proposed transaction first. |
-s, --simulate | Show planned actions without changing the system. |
Review a command and its target before running it. Commands that alter files, services, accounts, disks, permissions or databases may be difficult to reverse. Test in a safe environment and keep backups.