1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-03 12:55:23 +02:00
tldr/pages/linux/dpkg-query.md

25 lines
547 B
Markdown
Raw Normal View History

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