commands

dpkg — manage Debian packages

Low-level Debian package manager. -s queries installed status; -i installs local archives and may fail if dependencies are absent. Do not edit the database manually. Use the specified distribution and fresh private workspace; no sudo.

Formal Syntax & Structure

linux syntaxlinux
dpkg -s PACKAGE

Parameters & Attributes

NameTypeDescription
-soptiondisplay status
PACKAGEoperandpackage name

Return Value

exit status and output

Low-level Debian package manager. -s queries installed status; -i installs local archives and may fail if dependencies are absent. Do not edit the database manually.

Working Example

Example Snippetlinux
dpkg -s bash | grep '^Status:'
Linux Reference