Linux "Discrimination Update/upgrade" and install/uninstall software (apt-get)

Source: Internet
Author: User

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)

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.