tldr/pages/linux/dpkg-query.md

25 lines
528 B
Markdown
Raw Normal View History

2016-01-06 12:38:13 +00:00
# dpkg-query
> Display information about installed packages.
> More information: <https://manpages.debian.org/latest/dpkg/dpkg-query.1.html>.
2016-01-06 12:38:13 +00:00
- List all installed packages:
2016-01-06 12:38:13 +00:00
`dpkg-query --list`
2016-01-06 12:38:13 +00:00
- List installed packages matching a pattern:
2016-01-06 12:38:13 +00:00
`dpkg-query --list '{{libc6*}}'`
2016-01-06 12:38:13 +00:00
- List all files installed by a package:
2016-01-06 12:38:13 +00:00
`dpkg-query --listfiles {{libc6}}`
2016-01-06 12:38:13 +00:00
- Show information about a package:
2016-01-06 12:38:13 +00:00
`dpkg-query --status {{libc6}}`
- Search for packages that own files matching a pattern:
`dpkg-query --search {{/etc/ld.so.conf.d}}`