dpkg
SystemFundamentalsReference onlyInstall and query .deb packages
Name: dpkg = Debian package
This command is outside what the site lets you practise (mostly distribution-specific or rarely used tools). This page describes how to use it; try it on your own Linux system.
Description
dpkg is the low-level tool of the Debian package system: it installs, removes and queries .deb files directly. It doesn't fetch dependencies, so if some are missing afterwards run sudo apt -f install.
Syntax
dpkg [OPTION]... ACTIONCommon options
| -i / --install | Install a .deb file |
| -r / --remove | Remove a package (keeping its configuration) |
| -P / --purge | Remove a package and its configuration |
| -l / --list | List installed packages |
| -s / --status | Show a package’s status and details |
| -L / --listfiles | Files installed by a package |
| -S / --search | Which package owns a file |
| -c / --contents | List the files in a .deb (without installing it) |