Apt-get Way to remove software

Source: Internet
Author: User

Reference http://www.tennfy.com/1518.html

Apt-get–purge Remove
Remove the installed package (does not preserve the configuration file).
If package A is dependent on package B, executing the command deletes a and does not preserve the configuration file

Apt-get Autoremove
Remove packages (including installed packages) that are installed to meet dependencies but are no longer needed.
If package A, which depends on package B, executes the command and deletes the package, a, a

Apt-get Remove
Remove the installed packages (keep profile).
such as package A, which relies on package B, executes the command to delete a, and preserves the configuration file

Apt-get AutoClean
The underlying package for apt is dpkg, and when dpkg installs the packages, *.deb is placed in/var/cache/apt/archives/.
Apt-get AutoClean will only remove Deb that has expired/var/cache/apt/archives/.

Apt-get Clean
Using Apt-get clean will erase all Deb/var/cache/apt/archives/.
Similar to Rm/var/cache/apt/archives/*.deb

Summary

If the software is completely uninstalled, it is recommended to use Apt-get–purge remove, which is not recommended, because you can remove the dependent package or be dependent on other software packages, which may result in the unavailability of other programs.

If you are cleaning the hard drive, it is recommended to use Apt-get Autoclean,deb after installation is basically not much use, can be eliminated

Apt-get Way to remove software

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.