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 PACKAGEParameters & Attributes
| Name | Type | Description |
|---|---|---|
| -s | option | display status |
| PACKAGE | operand | package 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:'