2015-10-22 10:00:05 +03:00
|
|
|
# dpkg
|
2014-04-29 01:19:22 +04:00
|
|
|
|
2016-01-07 20:31:27 +03:00
|
|
|
> Debian package manager.
|
2020-10-13 13:49:56 +03:00
|
|
|
> More information: <https://manpages.debian.org/buster/dpkg/dpkg.1.en.html>.
|
2014-04-29 01:19:22 +04:00
|
|
|
|
2016-01-07 20:31:27 +03:00
|
|
|
- Install a package:
|
2014-04-29 01:19:22 +04:00
|
|
|
|
2018-09-03 13:28:06 +03:00
|
|
|
`dpkg -i {{path/to/file.deb}}`
|
2014-04-29 01:19:22 +04:00
|
|
|
|
2016-01-07 20:31:27 +03:00
|
|
|
- Remove a package:
|
2014-04-29 01:19:22 +04:00
|
|
|
|
|
|
|
`dpkg -r {{package_name}}`
|
|
|
|
|
2016-01-07 20:31:27 +03:00
|
|
|
- List installed packages:
|
2014-04-29 01:19:22 +04:00
|
|
|
|
2015-09-23 13:17:08 +03:00
|
|
|
`dpkg -l {{pattern}}`
|
2014-04-29 01:19:22 +04:00
|
|
|
|
2020-10-13 13:49:56 +03:00
|
|
|
- List a package's contents:
|
2014-04-29 01:19:22 +04:00
|
|
|
|
|
|
|
`dpkg -L {{package_name}}`
|
2016-11-25 20:08:18 +03:00
|
|
|
|
2018-09-03 13:28:06 +03:00
|
|
|
- List contents of a local package file:
|
|
|
|
|
|
|
|
`dpkg -c {{path/to/file.deb}}`
|
|
|
|
|
2017-01-02 20:36:30 +03:00
|
|
|
- Find out which package owns a file:
|
2016-11-25 20:08:18 +03:00
|
|
|
|
2020-05-22 15:31:24 +03:00
|
|
|
`dpkg -S {{filename}}`
|