📝 Edit on GitHub
APT
The OS package manager for Debian- and Ubuntu-based Linux systems
See APT manpage on Ubuntu docs.
Note that apt
is a more modern version of apt-get
. They are separate packages and commands are mostly the safe. See also aptitude
command for a GUI.
You should use the sudo
prefix for all the commands here, unless you are root. Some installs will fail without root privileges.
See also my os-genesis repo’s script which deal with APT.
Manage package
Specify one or more packages by name (separated by spaces).
Install package
$ apt install PACKAGE
e.g.
$ apt foo bar
Upgrade package
$ apt upgrade PACKAGE
Remove package
$ apt remove PACKAGE
Update all packages
$ apt update