apt Command Examples

Package management utility for Debian based distributions. Recommended replacement for apt-get when used interactively in Ubuntu versions 16.04 and later. For equivalent commands in other package managers, see https://wiki.archlinux.org/title/Pacman/Rosetta. More information: https://manned.org/apt.8.

sudo apt update

apt search {{package}}

apt show {{package}}

sudo apt install {{package}}

sudo apt remove {{package}}

sudo apt upgrade

apt list

apt list --installed