dpkg-query: add --search option, use long form of short options (#8228)

* dpkg-query: add --search option, use long form of short options

* Update pages/linux/dpkg-query.md

Co-authored-by: Axel Navarro <navarroaxel@gmail.com>

* Update pages/linux/dpkg-query.md

Co-authored-by: Axel Navarro <navarroaxel@gmail.com>

* Update pages/linux/dpkg-query.md

Co-authored-by: Axel Navarro <navarroaxel@gmail.com>

* dpkg-query: use concrete examples for user-provided values

Co-authored-by: Axel Navarro <navarroaxel@gmail.com>
pull/1/head
Adrien Thebo 2022-07-20 10:50:21 -07:00 committed by GitHub
parent efd2a87d92
commit 50170420d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 4 deletions

View File

@ -5,16 +5,20 @@
- List all installed packages:
`dpkg-query -l`
`dpkg-query --list`
- List installed packages matching a pattern:
`dpkg-query -l '{{pattern}}'`
`dpkg-query --list '{{libc6*}}'`
- List all files installed by a package:
`dpkg-query -L {{package_name}}`
`dpkg-query --listfiles {{libc6}}`
- Show information about a package:
`dpkg-query -s {{package_name}}`
`dpkg-query --status {{libc6}}`
- Search for packages that own files matching a pattern:
`dpkg-query --search {{/etc/ld.so.conf.d}}`