Privacy Policy
© 2025 linux101.dev

DPKG (Debian/Ubuntu)

`dpkg` is a low-level package manager that works directly with `.deb` package files. It is not used for resolving dependencies.

DPKG Commands

CommandDescription
sudo dpkg -i package.debInstalls a `.deb` package file.
dpkg -l <package_name>Lists installed packages matching the name.
dpkg -s <package_name>Displays detailed information about an installed package.
sudo dpkg -r <package_name>Removes an installed package, but leaves its configuration files.
sudo dpkg -P <package_name>Purges an installed package, removing both the package and its configuration files.