HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

dpkg-query — Display information about installed packages. More information: <https://manned.org/dpkg-query>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commanddpkg-querycliinformationaboutinstalleddisplaypackages
linux

Problem

How to use the dpkg-query command: Display information about installed packages. More information: <https://manned.org/dpkg-query>.

Solution

dpkg-query — Display information about installed packages. More information: <https://manned.org/dpkg-query>.

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]}} {{libc6}}


Show information about a package:
dpkg-query {{[-s|--status]}} {{libc6}}


Search for packages that own files matching a pattern:
dpkg-query {{[-S|--search]}} {{/etc/ld.so.conf.d}}

Code Snippets

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]}} {{libc6}}

Show information about a package

dpkg-query {{[-s|--status]}} {{libc6}}

Search for packages that own files matching a pattern

dpkg-query {{[-S|--search]}} {{/etc/ld.so.conf.d}}

Context

tldr-pages: linux/dpkg-query

Revisions (0)

No revisions yet.