Debian package manager

Debian packages are adopted by several Linux distributions, most notably Ubuntu, Knoppix and Linux Mint. Debian packages usually have the .deb extension. To install, remove or list Debian packages, the dpkg command is used.

Some common options used with the dpkg command are:

linux dpkg options

Installing packages using dpkg

To install a .deb package, use the dpkg command with the -i option:

linux dpkg install package

Removing packages using dpkg

To remove a .deb package, use the dpkg command with the -r option

linux dpkg uninstall package

Display the list of installed packages using dpkg

To list all installed packages on a system, use the dpkg command with the -l option

linux dpkg list packages

Display package information using dpkg

To display information about an installed package, use the -p option along with the name of the software:

dpkg p option

dpkg does not install dependencies. Some higher-level programs, such as apt-get and aptitude, are used for dependency resolution.
Geek University 2022