dpkg

Debian package manager.

Installation

Usage

Short form

dpkg -s             #1 Print status of all package(i.e., print `/var/lib/dpkg/status`)
dpkg -s <package>   #2 Print <package> status
dpkg -l             #3 Print list of installed packages(from `/var/lib/dpkg/status`)
dpkg -l "<pattern>" #4 Print list of packages matching <pattern>
dpkg -S "<pattern>" #5 Print list of packages which own files matching <pattern>

Long form

dpkg --status             #1
dpkg --status <package>   #2
dpkg --list               #3
dpkg --list "<pattern>"   #4
dpkg --search "<pattern>" #5