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
-
apt-get install dpkg - Ubuntu
-
apt-get install dpkg -
Alpine
-
apk add dpkg - Kali Linux
-
apt-get install dpkg - Fedora
-
dnf install dpkg - Windows (WSL2)
-
sudo apt-get updatesudo apt-get install dpkg - OS X
-
brew install dpkg - Raspbian
-
apt-get install dpkg - Docker
-
docker run cmd.cat/dpkg-query dpkg-querypowered 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