First, APT
Apt-cache Search #------(Package search packages) apt-cache Show #------(Package gets information about packages, such as description, size, version, etc.) sudo apt-GetInstall #------(Package installer) sudo apt-GetInstall #-----(Package--Reinstall reinstall package) sudo apt-Get-F Install #-----(Force install? #"- f =--fix-missing"when it is a repair installation ...) sudo apt-GetRemove #-----(Package delete pack) sudo apt-GetRemove--Purge #------(Package delete packages, including delete profiles, etc.) sudo apt-GetAutoremove--purge #----(Package delete package and its dependent packages +configuration files, etc. (only valid for 6.10, highly recommended)) sudo apt-GetUpdate #------update source sudo apt-GetUpgrade #------update installed packages sudo apt-GetDist-upgrade #---------upgrading the system sudo apt-GetDselect-upgrade #------upgrading apt with Dselect-cache depends #-------(Package understands usage dependencies) apt-cache Rdepends #------(Package understands a specific dependency?)#当是查看该包被哪些包依赖吧 ...) sudo apt-GetBUILD-DEP #------(Package Installation-related compilation environment) apt-GetSOURCE #------(Package downloads the source code of the bundle) sudo apt-GetClean && sudo apt-GetAutoClean #--------Clean up archive of downloaded files &&only clean out the outdated packages sudo apt-GetCheck #-------checks for corrupted dependencies
Some detailed
apt-Getinstall download and all dependent packages while installing or upgrading the package. If a package is set to hold (stop flag, it will be put aside (ie will not be upgraded). See below for more hold details. Apt-GetRemove [--Purge] Remove and any other parcels that depend on the package. --purge indicates that the package should be completely cleared (purged), for more information see dpkg-P. Apt-GetUpdate upgrades the package list from the Debian image, if you want to install any software on the day, run at least once a day, and each time you modify the/etc/apt/after sources.list, it must be executed. Apt-GetUpgrade [-U] Upgrade so the package that has been installed is the latest available version. New or removed old packages are not installed. If a package changes the dependency relationship and needs to install a new package, then it will not be upgraded, but is marked as hold. Apt-GetUpdate does not upgrade a package that is flagged as hold (this is the meaning of hold). See below how to manually set the package to hold. I recommend using both'- u'option, because then you can see which packages will be upgraded. Apt-GetDist-upgrade [-u] and apt-GetUpgrade similar, except dist-upgrade will install and remove packages to meet dependent relationships. Therefore, it has a certain danger. Apt-Cache Search searches for packages and descriptions that are met. Apt-the full description of the cache show. Apt-The cache showpkg shows many details, as well as relationships with other packages.
Second, dpkg
A suite management system developed specifically for Debian to facilitate the installation, updating and removal of software. All "Linux" distributions originating from "Debian" use "dpkg", such as "Ubuntu", "Knoppix
Dpkg-------s displays information about the installed package. Also see apt-cache shows the package information in the Debian archive, and dpkg-I to display the package information extracted from a. deb file. Dpkg-reconfigure to reconfigure an already installed package if it is using debconf (debconf provides a unified configuration interface for package installation). You can re-formulate debconf it itself, as you want to change its front end or ask for priority. For example, to re-configure debconf, use a dialog front end, simple to run: dpkg-reconfigure--frontend=dialog debconf (if you chose the wrong installation, you can change it back yo:)
UBUNTU--APT && dpkg Reference