Debian (ubuntu)

Source: Internet
Author: User
In Debian (ubuntu), go to dpkg-Linux Release Technology-Debian information. For more information, see below. 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 all the software packages under a directory
Command line:
Dpkg-R
Example:
Dpkg-R/usr/local/src
3) release the software package, but do 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 the Software Package
Command line:
Dpkg -- configure package_file
If used with-a, all software packages that are not configured will be configured.
Example:
Dpkg -- configure avg71flm_r28-1_i386.deb
5) delete a software package (retain its configuration information)
Command line:
Dpkg-P
Example:
Dpkg-P avg71flm
6) Information about the replacement Software Package
Command line:
Dpkg -- update-avail
7) Merge the software package information
Dpkg -- merge-avail
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) information about all Uninstall software packages is lost.
Command line:
Dpkg -- forget-old-unavail
11) Delete the Avaliable information of the software package.
Command line:
Dpkg -- clear-avail
12) find information about only some installed software packages.
Command line:
Dpkg-C
13) compare the 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 the Licence of dpkg
Command line:
Dpkg -- licence (or) dpkg -- license
16) displays the dpkg version number.
Command line:
Dpkg -- version
17) create a deb File
Command line:
Dpkg-B directory [filename]
18) display the directory of a Deb File
Command line:
Dpkg-c filename
19) display Deb description
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 installed Deb packages and the version number and brief description.
Command line:
Dpkg-l
22) report the status information of the specified package
Command line:
Dpkg-s package-name
Example:
Dpkg-s ssh
23) displays the file directory information of a package installed in the system.
Command line:
Dpkg-L package-Name
Example:
Dpkg-L apache2
24) Search for objects in a specified package (fuzzy search)
Command line:
Dpkg-S filename-search-pattern
25) display package details
Command line:
Dpkg-p package-name
Example:
Dpkg-p cacti

Finally:
1. Many people complain that they do not know where to install their software after using Ubuntu or Debian. 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", there is no configuration. 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.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.