Detailed usage dpkg

dpkg is a command-line tool for Debian, which can be used to install, remove, build and manage the Debian package.
The following are some of the command interpreter:
1) Install the software
command line: dpkg -i <.deb file name>
Example: dpkg -i avg71flm_r28-1_i386.deb
2) mounting a directory of all packages
command line: dpkg -R
example: -R & lt dpkg / usr / local / the src
. 3) to release the package, but does not configure the
command line: dpkg -unpack package_file if used with -R, parameters can be a directory
example: dpkg -unpack avg71flm_r28-1_i386.deb
4) re-configuration and release of the package
command line: dpkg -configure package_file
if used with -a, configure all packages that are not configured
example: dpkg -configure avg71flm_r28-1_i386.deb
5) Remove a package (not its configuration information )
command line: dpkg -r
example: dpkg -r avg71flm
. 6) alternate package information
command: dpkg -update-Avail <File-the packages>
. 7) were combined package information
dpkg -merge-avail <packages-file >
8) reads the software information from the package inside
the command line: dpkg -A package_file
. 9) remove a package (including configuration information)
command: dpkg -P
10) of the package lose all information Uninstall
command line: dpkg -forget UNAVAIL--old
11) delete information avaliable package
command line: dpkg -clear Avail-
12) will look for package information is only part of the installation
command line: dpkg -C
13) comparing the differences between the different versions of the same package of
command line: dpkg -compare-versions ver1 OP Ver2
14) displays help information
the command line: dpkg -help
15) displays the Licence dpkg
command line: dpkg -licence (or) dpkg -license
16) displays the version number dpkg
command line: dpkg -version
. 17) to establish a deb file
command: dpkg -b Direc × Y [filename]
18 is) displaying a directory file deb
command line: dpkg -C filename
. 19) displays a description deb
command line: dpkg -I filename [ File-Control]
20 is) search packet Deb
Command line: dpkg -l package-name-pattern
Example: dpkg -I Vim
21 is) shows all installed Deb package, version number, and also shows a short description of
the command line: dpkg -l
state 22) reports information about the specified package
the command line : dpkg -s package-name
examples: dpkg -s SSH
23 is) a display system mounted to the inside of the package file directory information
command line: dpkg -L package-name
example: dpkg -L apache2
24) inside the search for the specified package ( Fuzzy queries)
command line: dpkg -S filename-pattern Search-
25) show specific packet
command line: dpkg -p package-name
examples: dpkg -p cacti

Finally:
1, many people complain that after using the Ubuntu or Debian, do not know their own software to install somewhere. In fact, you can use the above dpkg -L command to facilitate the search. It seems the foundation is still very important, the graphical interface is not able to do everything.
2, sometimes, with "Sony was" after the download is complete, no configuration, you will be prompted to configure with "dpkg -configure -all", you can also see why the concrete from above.
3, now Edgy which you can see information about Deb's. But in the absence of the installation (of course, you can reopen the package), you can see the file path of Deb.
4. If you want to temporarily remove the program to install later, item 5 is quite useful, after all, is not easy to configure a software under Linux.

dpkg is a command-line tool for Debian, which can be used to install, remove, build and manage the Debian package.
The following are some of the command interpreter:
1) Install the software
command line: dpkg -i <.deb file name>
Example: dpkg -i avg71flm_r28-1_i386.deb
2) mounting a directory of all packages
command line: dpkg -R
example: -R & lt dpkg / usr / local / the src
. 3) to release the package, but does not configure the
command line: dpkg -unpack package_file if used with -R, parameters can be a directory
example: dpkg -unpack avg71flm_r28-1_i386.deb
4) re-configuration and release of the package
command line: dpkg -configure package_file
if used with -a, configure all packages that are not configured
example: dpkg -configure avg71flm_r28-1_i386.deb
5) Remove a package (not its configuration information )
command line: dpkg -r
example: dpkg -r avg71flm
. 6) alternate package information
command: dpkg -update-Avail <File-the packages>
. 7) were combined package information
dpkg -merge-avail <packages-file >
8) reads the software information from the package inside
the command line: dpkg -A package_file
. 9) remove a package (including configuration information)
command: dpkg -P
10) of the package lose all information Uninstall
command line: dpkg -forget UNAVAIL--old
11) delete information avaliable package
command line: dpkg -clear Avail-
12) will look for package information is only part of the installation
command line: dpkg -C
13) comparing the differences between the different versions of the same package of
command line: dpkg -compare-versions ver1 OP Ver2
14) displays help information
the command line: dpkg -help
15) displays the Licence dpkg
command line: dpkg -licence (or) dpkg -license
16) displays the version number dpkg
command line: dpkg -version
. 17) to establish a deb file
command: dpkg -b Direc × Y [filename]
18 is) displaying a directory file deb
command line: dpkg -C filename
. 19) displays a description deb
command line: dpkg -I filename [ File-Control]
20 is) search packet Deb
Command line: dpkg -l package-name-pattern
Example: dpkg -I Vim
21 is) shows all installed Deb package, version number, and also shows a short description of
the command line: dpkg -l
state 22) reports information about the specified package
the command line : dpkg -s package-name
examples: dpkg -s SSH
23 is) a display system mounted to the inside of the package file directory information
command line: dpkg -L package-name
example: dpkg -L apache2
24) inside the search for the specified package ( Fuzzy queries)
command line: dpkg -S filename-pattern Search-
25) show specific packet
command line: dpkg -p package-name
examples: dpkg -p cacti

Finally:
1, many people complain that after using the Ubuntu or Debian, do not know their own software to install somewhere. In fact, you can use the above dpkg -L command to facilitate the search. It seems the foundation is still very important, the graphical interface is not able to do everything.
2, sometimes, with "Sony was" after the download is complete, no configuration, you will be prompted to configure with "dpkg -configure -all", you can also see why the concrete from above.
3, now Edgy which you can see information about Deb's. But in the absence of the installation (of course, you can reopen the package), you can see the file path of Deb.
4. If you want to temporarily remove the program to install later, item 5 is quite useful, after all, is not easy to configure a software under Linux.

Guess you like

Origin www.cnblogs.com/h-c-g/p/11099665.html