2016-01-06 12:38:13 +00:00
|
|
|
# dpkg-query
|
|
|
|
|
|
|
|
> A tool that shows information about installed packages.
|
2021-07-09 15:45:55 +01:00
|
|
|
> More information: <https://manpages.debian.org/latest/dpkg/dpkg-query.1.html>.
|
2016-01-06 12:38:13 +00:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- List all installed packages:
|
2016-01-06 12:38:13 +00:00
|
|
|
|
2022-07-20 18:50:21 +01:00
|
|
|
`dpkg-query --list`
|
2016-01-06 12:38:13 +00:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- List installed packages matching a pattern:
|
2016-01-06 12:38:13 +00:00
|
|
|
|
2022-07-20 18:50:21 +01:00
|
|
|
`dpkg-query --list '{{libc6*}}'`
|
2016-01-06 12:38:13 +00:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- List all files installed by a package:
|
2016-01-06 12:38:13 +00:00
|
|
|
|
2022-07-20 18:50:21 +01:00
|
|
|
`dpkg-query --listfiles {{libc6}}`
|
2016-01-06 12:38:13 +00:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Show information about a package:
|
2016-01-06 12:38:13 +00:00
|
|
|
|
2022-07-20 18:50:21 +01:00
|
|
|
`dpkg-query --status {{libc6}}`
|
|
|
|
|
|
|
|
- Search for packages that own files matching a pattern:
|
|
|
|
|
|
|
|
`dpkg-query --search {{/etc/ld.so.conf.d}}`
|