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.
|
2020-10-13 11:49:56 +01:00
|
|
|
> More information: <https://manpages.debian.org/buster/dpkg/dpkg.1.en.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
|
|
|
|
|
|
|
`dpkg -r {{package_name}}`
|
|
|
|
|
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
|
|
|
|
|
|
|
`dpkg -L {{package_name}}`
|
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
|
|
|
|
2020-05-22 13:31:24 +01:00
|
|
|
`dpkg -S {{filename}}`
|