tldr/pages/linux/apt.md
2017-04-23 21:55:19 +01:00

558 B

apt

Package management utility for Debian based distributions.

  • Update list of packages and versions available. This should be run before running further apt commands:

sudo apt update

  • Search for packages:

apt search {{package}}

  • Show information for a package:

apt show {{package}}

  • Install a new package:

sudo apt install {{package}}

  • Remove a package (using "purge" instead also removes its configuration files):

sudo apt remove {{package}}

  • Upgrade installed packages to the newest available versions:

sudo apt upgrade