dpkg-query

A tool that shows information about installed packages. More information: <https://manpages.debian.org/latest/dpkg/dpkg-query.1.html>.

Install

All systems
curl cmd.cat/dpkg-query.sh
Debian Debian
apt-get install dpkg
Ubuntu
apt-get install dpkg
Alpine
apk add dpkg
image/svg+xml Kali Linux
apt-get install dpkg
Fedora
dnf install dpkg
Windows (WSL2)
sudo apt-get update sudo apt-get install dpkg
OS X
brew install dpkg
Raspbian
apt-get install dpkg
Docker
docker run cmd.cat/dpkg-query dpkg-query powered by Commando

A tool that shows information about installed packages. More information: <https://manpages.debian.org/latest/dpkg/dpkg-query.1.html>.

  • List all installed packages:
    dpkg-query --list
  • List installed packages matching a pattern:
    dpkg-query --list 'libc6*'
  • List all files installed by a package:
    dpkg-query --listfiles libc6
  • Show information about a package:
    dpkg-query --status libc6
  • Search for packages that own files matching a pattern:
    dpkg-query --search /etc/ld.so.conf.d

© tl;dr; authors and contributors