1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-28 21:17:57 +01:00
tldr/pages/linux/apt.md
cyqsimon 2d4f0ad33d
linux package managers: add link to ArchWiki Rosetta (#9507)
Affected pages: apt, dnf, dpkg, emerge, pacman, rpm, yum, zypper
2022-12-05 10:57:55 +10:00

987 B

apt

Package management utility for Debian based distributions. Recommended replacement for apt-get when used interactively in Ubuntu versions 16.04 and later. For equivalent commands in other package managers, see https://wiki.archlinux.org/title/Pacman/Rosetta. More information: https://manpages.debian.org/latest/apt/apt.8.html.

  • Update the list of available packages and versions (it's recommended to run this before other apt commands):

sudo apt update

  • Search for a given package:

apt search {{package}}

  • Show information for a package:

apt show {{package}}

  • Install a package, or update it to the latest available version:

sudo apt install {{package}}

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

sudo apt remove {{package}}

  • Upgrade all installed packages to their newest available versions:

sudo apt upgrade

  • List all packages:

apt list

  • List installed packages:

apt list --installed