dpkg

Install, create and manage software packages on Debian Linux systems

Supplementary instructions

dpkg command is a utility tool used by Debian Linux systems to install, create and manage software packages.

grammar

dpkg(options)(parameters)

Options

-i: Install software package;
-r: delete the software package;
-P: Delete the configuration file when deleting the software package;
-L: Display files associated with the software package;
-l: Display the list of installed software packages;
--unpack: Unpack the software package;
-c: Display the file list in the software package;
--configre: Configure the software package.

Parameters

Deb package: Specify the .deb package to operate.

Example

dpkg -i package.deb # Installation package
dpkg -r package # Delete package
dpkg -P package # Delete package (including configuration file)
dpkg -L package # List files associated with this package
dpkg -l package # Display the version of the package
dpkg --unpack package.deb # Unpack the contents of the deb package
dpkg -S keyword # Search the contents of the package it belongs to
dpkg -l # List currently installed packages
dpkg -c package.deb # List the contents of the deb package
dpkg --configure package # Configuration package