Options (4)
-l, --listbooleanList all installed packages
Example:
dpkg-query {{[-l|--list]}}-L, --listfilesbooleanList all files installed by a package
Example:
dpkg-query {{[-L|--listfiles]}} {{libc6}}-s, --statusbooleanShow information about a package
Example:
dpkg-query {{[-s|--status]}} {{libc6}}-S, --searchbooleanSearch for packages that own files matching a pattern
Example:
dpkg-query {{[-S|--search]}} {{/etc/ld.so.conf.d}}Examples (5)
List all installed packages
dpkg-query [-l|--list]List installed packages matching a pattern
dpkg-query [-l|--list] 'libc6*'List all files installed by a package
dpkg-query [-L|--listfiles] libc6Show information about a package
dpkg-query [-s|--status] libc6Search for packages that own files matching a pattern
dpkg-query [-S|--search] /etc/ld.so.conf.dmade by @shridhargupta | data from tldr-pages