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-query.md

24 lines
528 B
Markdown

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