[Notebook] Ubuntu Linux uses the apt-get directive to remove software and clean up the left-over garbage

Source: Internet
Author: User

This was come from http://blog.lyhdev.com/2013/01/ubuntu-linux-apt-get.html

To remove a software suite under Ubuntu, the instructions used are apt-get remove, for example:

sudo apt-get remove Texlive-full

However, since this kit was previously installed, it will be a self-installing dependency kit (dependencies), so it needs to be cleaned with autoremove.

sudo apt-get autoremove

Or add a reference at remove:

sudo apt-get remove--auto-remove

But this is not yet clean, because the preset remove acts to preserve some of the genetic relics of the set. So it needs to be removed in a purge way. A single set of pieces is removed using the Purge method:

sudo apt-get purge texlive-full

Or

sudo apt-get remove--purge texlive-full

When using Autoremove, you can add--purge parameters and remove the kit at the same time.

sudo apt-get autoremove--purge

If you have previously removed from autoremove or remove or otherwise, but have not purge removed the package, use the DPKG directive to list the order:

Dpkg-l | grep ^RC

Where ^RC represents the start of the beginning of the line with RC, this is only remove does not have purge meaning.

To batch remove these "RC" packages, you can match the grep + awk instructions.

Dpkg-l | grep ^RC | awk ' {print $} '

After the instructions are assembled, the batches are thoroughly removed from these remaining kits.

sudo apt-get purge ' dpkg-l | grep ^RC | awk ' {print $} '

This allows the system to be a little cleaner!

[Notebook] Ubuntu Linux uses the apt-get directive to remove software and clean up the left-over garbage

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.