Dpkg is a command line tool for Debian. It can be used to install, delete, build, and manage Debian software packages. The following are some of its command interpretations:
1) install software command line: dpkg-I <. Deb File Name> example: dpkg-I avg71flm_r28-1_i386.deb
2) install the command line for all the software packages in a directory: dpkg-r example: dpkg-r/usr/local/src
3) release the package, but do not configure the command line: dpkg-Unpack package_file if used with-R, the parameter can be a directory example: dpkg-Unpack avg71flm_r28-1_i386.deb
4) Reconfigure and release the package command line: dpkg-configure package_file if used with-a, it will configure all the package without configuration example: dpkg-configure avg71flm_r28-1_i386.deb
5) delete a software package (retain its configuration information) command line: dpkg-r example: dpkg-r avg71flm
6) command line for replacing the software package: dpkg-Update-avail <packages-File>
7) Merge the package information dpkg-merge-avail <packages-File>
8) read the software information from the software package. Command Line: dpkg-A package_file
9) delete a package (including configuration information) command line: dpkg-P
10) command line: dpkg-Forget-old-unavail
11) command line: dpkg-clear-avail
12) command line: dpkg-C
13) command line for comparing different versions of the same package: dpkg-compare-versions ver1 op ver2
14) command line for displaying help information: dpkg-help
15) display the dpkg licence command line: dpkg-licence (OR) dpkg-license
16) command line for displaying the dpkg version: dpkg-version
17) create a deb FILE command line: dpkg-B direc × y [filename]
18) display the directory command line of a deb file: dpkg-C filename
19) Deb command line: dpkg-I filename [control-file]
20) Search for the Deb package command line: dpkg-l package-name-pattern example: dpkg-I Vim
21) display all Deb packages that have been installed, and display the version number and brief instructions. Command Line: dpkg-l
22) report the status information of the specified package command line: dpkg-s package-name example: dpkg-s SSH
23) command line: dpkg-l package-name example: dpkg-l apache2
24) Search for the file in the specified package (fuzzy query) command line: dpkg-s filename-search-Pattern
25) command line: dpkg-P package-name example: dpkg-P cacti
Finally: 1. Many people complain that they do not know where their software is installed after Ubuntu or Debian is used. In fact, you can use the following dpkg-l command for convenient search. It seems that the basics are very important, and the graphic interface cannot do everything. 2. Sometimes, after the download is completed with "new force", no configuration is available. The system will prompt you to use "dpkg-configure-all" for configuration. The specific reason can also be seen from the above. 3. Now you can see the Deb information in edgy. But when the package is not installed (you can re-open the package), you can see the Deb file path. 4. If you want to temporarily Delete the program and then install it again, the 5th items are quite practical. After all, it is not easy to configure a software under Linux.
Dpkg usage (conversion)