APT is the package manager on Debian based Linux distributions and includes apt-get and dpkg and related utilities.

Usage[edit]

Task Command
Install a package by name
# apt-get install <package>
Remove a package by name
# apt-get remove --purge
# apt-get autoremove <package>
Upgrade a package
# apt-get update
# apt-get upgrade <package>
Search for a package
# apt-cache search <package>
List installed packages
# dpkg -l
Look for a specific package by name
# dpkg -l <package name>
Determine which package provided a file
# dpkg -S <path to file>