mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-30 21:41:38 +00:00
30 lines
594 B
Plaintext
30 lines
594 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, linux]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# dpkg-query
|
|
|
|
> Display information about installed packages.
|
|
> More information: <https://manned.org/dpkg-query.1>.
|
|
|
|
- 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}}`
|