Chapter 2. Debian package management
# Update package archive metadata.
apt update
# Install candidate version of <package> with its dependencies.
apt install <package>
# Install candidate version of installed packages without removing any other packages.
apt upgrade
# Remove <package> while leaving its configuration files.
apt remove <package>
# Remove auto-installed packages which are no longer required.
apt autoremove
# Purge <package> with its configuration files.
apt purge <package>
# Display detailed information about <package>.
apt show <package>
# Search packages which match <regex>.
apt search <regex>
# List installed
apt list --installed