tldr/pages/linux/dpkg.md

31 lines
638 B
Markdown
Raw 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.
> For equivalent commands in other package managers, see <https://wiki.archlinux.org/title/Pacman/Rosetta>.
> 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}}`