tldr/pages/linux/dpkg.md

30 lines
530 B
Markdown
Raw Permalink Normal View History

# dpkg
2014-04-28 22:19:22 +01:00
> Debian package manager.
> Some subcommands such as `dpkg deb` have their own usage documentation.
> More information: <https://manpages.debian.org/latest/dpkg/dpkg.html>.
2014-04-28 22:19:22 +01:00
- Install a package:
2014-04-28 22:19:22 +01:00
`dpkg -i {{path/to/file.deb}}`
2014-04-28 22:19:22 +01:00
- Remove a package:
2014-04-28 22:19:22 +01:00
`dpkg -r {{package_name}}`
- 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
- List a package's contents:
2014-04-28 22:19:22 +01:00
`dpkg -L {{package_name}}`
- 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:
`dpkg -S {{filename}}`