Dpkg is a Debian command-line tool that can be used to install, delete, build, and manage Debian packages.
Here are some of its command explanations:
1) Install the software
Command line: dpkg-i <.deb file name>
Example: Dpkg-i avg71flm_r28-1_i386.deb
2) Install all the packages under a directory
Command line: Dpkg-r
Example: Dpkg-r/usr/local/src
3) Release the package, but not configure it
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 packages
Command line: Dpkg–configure package_file
If used with-a, all packages that are not configured will be configured
Example: Dpkg–configure avg71flm_r28-1_i386.deb
5) Delete package (keep its configuration information)
Command line: Dpkg-r
Example: Dpkg-r avg71flm
6) Replacement of package information
Command line: Dpkg–update-avail <Packages-file>
7) Merging package information
Dpkg–merge-avail <Packages-file>
8) Read the software information from the package
Command line: Dpkg-a package_file
9) Delete a package (including configuration information)
Command line: dpkg-p
10) Loss of all uninstall package information
Command line: Dpkg–forget-old-unavail
11) Remove avaliable information from the package
Command line: Dpkg–clear-avail
12) Find only partially installed package information
Command line: dpkg-c
13) Compare differences between different versions of the same package
Command line: Dpkg–compare-versions ver1 op ver2
14) Display Help information
Command line: Dpkg–help
15) display of dpkg licence
Command line: dpkg–licence (OR) dpkg–license
16) Display the version number of the dpkg
Command line: dpkg–version
17) Create a Deb file
Command line: dpkg-b direcxy [filename]
18) Display the directory of a Deb file
Command line: dpkg-c filename
19) show a description of Deb
Command line: dpkg-i filename [Control-file]
20) Search Deb Package
Command line: Dpkg-l Package-name-pattern
Example: Dpkg-i vim
21) display all installed Deb packages with a version number and a short description
Command line: dpkg-l
22) Report status information for the specified package
Command line: Dpkg-s package-name
Example: Dpkg-s ssh
23) Display the file directory information of a package installed into the system
Command line: Dpkg-l package-name
Example: Dpkg-l apache2
24) Search for files within the specified package (fuzzy query)
Command line: Dpkg-s Filename-search-pattern
25) Display the details of the package
Command line: Dpkg-p package-name
Example: Dpkg-p cacti
At last:
1, many people complain that after using Ubuntu or Debian, they do not know where their software is installed. In fact, you can use the above dpkg-l command to facilitate the search. It seems that the basics are still very important, and the graphical interface is not all that matters.
2, sometimes, with "new force to" download completed, there is no configuration, the system will be prompted with "Dpkg–configure-all" to configure, specifically why you can see from the above.
3, now edgy inside can see Deb's information. However, you can see the Deb file path when there is no installation (and of course you can reopen the package).
4, if you want to temporarily remove the program after installation, the 5th is more practical, after all, it is not easy to configure a software under Linux.