dpkg Command Examples

Debian package manager. Some subcommands such as deb have their own usage documentation. For equivalent commands in other package managers, see https://wiki.archlinux.org/title/Pacman/Rosetta. More information: https://manned.org/dpkg.

dpkg {{[-i|--install]}} {{path/to/file.deb}}

dpkg {{[-r|--remove]}} {{package}}

dpkg {{[-l|--list]}} {{pattern}}

dpkg {{[-L|--listfiles]}} {{package}}

dpkg {{[-c|--contents]}} {{path/to/file.deb}}

dpkg {{[-S|--search]}} {{path/to/file}}

dpkg {{[-P|--purge]}} {{package}}