1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/linux/dpkg.md

35 lines
807 B
Markdown
Raw Normal View History

# dpkg
2014-04-29 01:19:22 +04:00
> Debian package manager.
> Some subcommands such as `deb` have their own usage documentation.
> For equivalent commands in other package managers, see <https://wiki.archlinux.org/title/Pacman/Rosetta>.
> More information: <https://manned.org/dpkg>.
2014-04-29 01:19:22 +04:00
- Install a package:
2014-04-29 01:19:22 +04:00
`dpkg {{[-i|--install]}} {{path/to/file.deb}}`
2014-04-29 01:19:22 +04:00
- Remove a package:
2014-04-29 01:19:22 +04:00
`dpkg {{[-r|--remove]}} {{package}}`
2014-04-29 01:19:22 +04:00
- List installed packages:
2014-04-29 01:19:22 +04:00
`dpkg {{[-l|--list]}} {{pattern}}`
2014-04-29 01:19:22 +04:00
- List a package's contents:
2014-04-29 01:19:22 +04:00
`dpkg {{[-L|--listfiles]}} {{package}}`
- List contents of a local package file:
`dpkg {{[-c|--contents]}} {{path/to/file.deb}}`
2017-01-02 23:06:30 +05:30
- Find out which package owns a file:
`dpkg {{[-S|--search]}} {{path/to/file}}`
- Purge an installed or already removed package, including configuration:
`dpkg {{[-P|--purge]}} {{package}}`