One, apt-get installation
deb is the installation format of debian linus, which is very similar to the rpm of red hat. The most basic installation command is: dpkg -i file.deb or double-click this file directly
dpkg is the abbreviation of Debian Package. It is a package management system specially developed for Debian to facilitate software installation, update and removal. All Linux distributions from Debian use dpkg, such as Ubuntu, Knoppix, etc.
Here are some common usages of Dpkg:
1、 dpkg -i
Install a Debian package, such as a file you downloaded manually.
2、 dpkg -c
The content listed.
3、 dpkg -I
Extract package information from it.
4、 dpkg -r
Remove an installed package.
5、 dpkg -P
Completely remove an installed package. Unlike remove, remove only deletes data and executable files, while purge also deletes all configuration files.
6、 dpkg -L
List all files installed. Also please see dpkg -c to check the contents of a .deb file.
7、 dpkg -s
Display information about installed packages. Also see apt-cache to display package information in Debian archives, and dpkg -I to display package information extracted from a .deb file.
8、 dpkg-reconfigure
Reconfigure an installed package if it uses debconf (debconf provides a unified configuration interface for package installation).
Relevant file location after software installation
The downloaded software storage location
/var/cache/apt/archives
The default location of the software after installation
/usr/share
Executable file location
/usr/bin
Configuration file location
/etc
5.lib file location
/usr/lib
Source of this article: http://blog.csdn.net/u012124564/article/details/50463863
Recommended Posts