APT

From Leo's Notes
Revision as of 20:31, 1 October 2019 by Leo (talk | contribs) (List of commands for common tasks in an apt environment)
This page was last edited on 1 October 2019, at 20:31.

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

Usage

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>