From 50170420d8c3d7c7ea5a7fc17e6e0f8af71b7733 Mon Sep 17 00:00:00 2001 From: Adrien Thebo Date: Wed, 20 Jul 2022 10:50:21 -0700 Subject: [PATCH] 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 * Update pages/linux/dpkg-query.md Co-authored-by: Axel Navarro * Update pages/linux/dpkg-query.md Co-authored-by: Axel Navarro * dpkg-query: use concrete examples for user-provided values Co-authored-by: Axel Navarro --- pages/linux/dpkg-query.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pages/linux/dpkg-query.md b/pages/linux/dpkg-query.md index 84fdc2395..d1930c674 100644 --- a/pages/linux/dpkg-query.md +++ b/pages/linux/dpkg-query.md @@ -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}}`