Мануалы и справочники Linux

Команда 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