First, "discrimination Update/upgrade"
Update:update is used to download package information from all configured sources.
Upgrade:upgrade is used to install available upgrades of all packages currently installed on the system from the sources Configured via Sources.list
Update package index, is to tell the package Manager the latest copy of the package version information, Update software support "list information", update the entire warehouse "version information";
Upgrade is the usual update package; Update "package"; "Upgrade package "
"You can not upgrade the software before installing it, but update it. Because the old information points to the old version of the package, but the source of the server updated after the old package may be replaced by the new, so you will encounter 404 ...----pick yourself up .
"Note: The software source server address can be visible in/etc/apt/sources.list"
Second, install/uninstall software common commands
0. Install the Software
sudo apt-get dist-upgrade update all software, install available updates "Common before installing software"
sudo apt-get install softwarename installation of specified software
Apt-cache Search Package_name Query Package
1. Remove the Software
Method One, if you know that you want to remove the specific name of the software, you can use
sudo apt-get remove packagename remove a package
sudo apt-get remove--purge softwarename
sudo apt-get autoremove--purge software name
Method Two, if you do not know to remove the specific name of the software, you can use
Dpkg--get-selections | grep ' Software related name '
sudo apt-get purge a package with a core, which is the case if there is no package with the core.
2. Clean up residual data
Dpkg-l |grep ^rc|awk ' {print $} ' |sudo Xargs dpkg-p
Iii. Supplementary Literature
linux--Update (update/upgrade) & Update Source (http://blog.csdn.net/liyuxia713/article/details/6008740)
Linux "Discrimination Update/upgrade" and install/uninstall software (apt-get)