2015-10-22 08:00:05 +01:00
|
|
|
# dpkg
|
2014-04-28 22:19:22 +01:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
> Debian package manager.
|
2021-09-13 09:21:21 +01:00
|
|
|
> Some subcommands such as `dpkg deb` have their own usage documentation.
|
2022-12-05 00:57:55 +00:00
|
|
|
> For equivalent commands in other package managers, see <https://wiki.archlinux.org/title/Pacman/Rosetta>.
|
2022-01-08 13:39:40 +00:00
|
|
|
> More information: <https://manpages.debian.org/latest/dpkg/dpkg.html>.
|
2014-04-28 22:19:22 +01:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Install a package:
|
2014-04-28 22:19:22 +01:00
|
|
|
|
2018-09-03 11:28:06 +01:00
|
|
|
`dpkg -i {{path/to/file.deb}}`
|
2014-04-28 22:19:22 +01:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Remove a package:
|
2014-04-28 22:19:22 +01:00
|
|
|
|
2023-08-26 18:30:06 +01:00
|
|
|
`dpkg -r {{package}}`
|
2014-04-28 22:19:22 +01:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- List installed packages:
|
2014-04-28 22:19:22 +01:00
|
|
|
|
2015-09-23 11:17:08 +01:00
|
|
|
`dpkg -l {{pattern}}`
|
2014-04-28 22:19:22 +01:00
|
|
|
|
2020-10-13 11:49:56 +01:00
|
|
|
- List a package's contents:
|
2014-04-28 22:19:22 +01:00
|
|
|
|
2023-08-26 18:30:06 +01:00
|
|
|
`dpkg -L {{package}}`
|
2016-11-25 17:08:18 +00:00
|
|
|
|
2018-09-03 11:28:06 +01:00
|
|
|
- List contents of a local package file:
|
|
|
|
|
|
|
|
`dpkg -c {{path/to/file.deb}}`
|
|
|
|
|
2017-01-02 17:36:30 +00:00
|
|
|
- Find out which package owns a file:
|
2016-11-25 17:08:18 +00:00
|
|
|
|
2023-08-26 18:30:06 +01:00
|
|
|
`dpkg -S {{path/to/file}}`
|