mirror of https://github.com/CrimsonTome/tldr.git
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
parent
efd2a87d92
commit
50170420d8
|
@ -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}}`
|
||||
|
|
Loading…
Reference in New Issue