How To Install Dpkg-query In Debian, Ubuntu, Alpine, Kali, Fedora, Raspbian And MacOS?

How To Install Dpkg-query In Debian, Ubuntu, Alpine, Kali, Fedora, Raspbian And MacOS?

dpkg-query

A tool that shows information about installed packages.

Maintainer: Dpkg Developers



Section: admin

Install dpkg-query

  • Debian apt-get install dpkg Click to copy
  • Ubuntu apt-get install dpkg Click to copy
  • Alpine OS apk add dpkg Click to copy
  • Kali Linux apt-get install dpkg Click to copy
  • Fedora dnf install dpkg Click to copy
  • Raspbian apt-get install dpkg Click to copy
  • macOS brew install dpkg Click to copy

A tool that shows information about installed packages.

How to use dpkg-query?

Below are few example commands for dpkg-query that you can use in the terminal.

List all installed packages:
dpkg-query -lClick to copy
List installed packages matching a pattern:
dpkg-query -l 'pattern'Click to copy
List all files installed by a package:
dpkg-query -L package_nameClick to copy
Show information about a package:
dpkg-query -s package_nameClick to copy
Installation of latest dpkg-query command is available for Debian, Ubuntu, Alpine, Kali, Fedora, Raspbian and macOS. You can copy the command for your OS from above and paste it into your terminal. Once you run the command it will download the 2026 latest package from the repository and install it in your computer/server.