dpkg-query

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

Debian Debian
RUN apt-get update && \ apt-get install -y dpkg
Ubuntu
RUN apt-get update && \ apt-get install -y dpkg
Alpine
RUN apk add dpkg
image/svg+xml Kali Linux
RUN apt-get update && \ apt-get install -y dpkg
Fedora
RUN dnf install -y dpkg
Raspbian
RUN apt-get update && \ apt-get install -y dpkg
click the source code to copy install dpkg-query on any operating system with command-not-found.com