mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-11-12 04:54:52 +03:00
d769661227
Add example for listing package contents of a downloaded `.deb` file, because `dpkg -L` only works with the `apt` name of the package (and only when installed).
28 lines
380 B
Markdown
28 lines
380 B
Markdown
# dpkg
|
|
|
|
> Debian package manager.
|
|
|
|
- Install a package:
|
|
|
|
`dpkg -i {{path/to/file.deb}}`
|
|
|
|
- Remove a package:
|
|
|
|
`dpkg -r {{package_name}}`
|
|
|
|
- List installed packages:
|
|
|
|
`dpkg -l {{pattern}}`
|
|
|
|
- List package contents:
|
|
|
|
`dpkg -L {{package_name}}`
|
|
|
|
- List contents of a local package file:
|
|
|
|
`dpkg -c {{path/to/file.deb}}`
|
|
|
|
- Find out which package owns a file:
|
|
|
|
`dpkg -S {{file_name}}`
|