dpkg
linux
Debian package manager. Some subcommands such as `deb` have their own usage documentation. For equivalent commands in other package managers, see <https://wiki.archlinux.org/title/Pacman/Rosetta>.
More info →Subcommands (3)
Options (7)
-i, --installbooleanInstall a package
Example:
sudo dpkg {{[-i|--install]}} {{path/to/file.deb}}-r, --removebooleanRemove a package
Example:
sudo dpkg {{[-r|--remove]}} {{package}}-l, --listbooleanList installed packages
Example:
dpkg {{[-l|--list]}} {{pattern}}-L, --listfilesbooleanList a package's contents
Example:
dpkg {{[-L|--listfiles]}} {{package}}-c, --contentsbooleanList contents of a local package file
Example:
dpkg {{[-c|--contents]}} {{path/to/file.deb}}-S, --searchbooleanFind out which package owns a file
Example:
dpkg {{[-S|--search]}} {{path/to/file}}-P, --purgebooleanPurge an installed or already removed package, including configuration
Example:
sudo dpkg {{[-P|--purge]}} {{package}}made by @shridhargupta | data from tldr-pages