How To Install Dpkg-query In Debian, Ubuntu, Alpine, Kali, Fedora, Raspbian And MacOS?
Maintainer: Dpkg Developers
Email: [email protected] .
Website: https://wiki.debian.org/Teams/Dpkg
Section: admin
Install dpkg-query
-
Debian
apt-get install dpkgClick to copy -
Ubuntu
apt-get install dpkgClick to copy -
Alpine OS
apk add dpkgClick to copy -
Kali Linux
apt-get install dpkgClick to copy -
Fedora
dnf install dpkgClick to copy -
Raspbian
apt-get install dpkgClick to copy -
macOS
brew install dpkgClick 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 copyList installed packages matching a pattern:dpkg-query -l 'pattern'Click to copyList all files installed by a package:dpkg-query -L package_nameClick to copyShow 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.




