Linux Applications: System cleanup

Source: Internet
Author: User

1. Clean up residual configuration files after software removal

Method 1:

An instruction is done:

Dpkg-l | grep ' ^RC ' | awk ' {print $} ' | sudo xargs dpkg--purge 2 >/dev/null

Dpkg-l can be executed first | grep ' ^RC ' | awk ' {print $} ' to confirm

Method 2:

Using new Rieter Cleanup

(1) Installation of new Rieter: sudo apt-get install synaptic

(2) Start new rieter: sudo synaptic

(3) Switch to Status tab and find not installed (residual config)

(4) Cleaning

2. Clean up the downloaded cache package

sudo apt-get install clean

sudo apt-get install AutoClean

3. Clean up the unwanted packages

sudo apt-get install Autoremove

4. Clean up Orphaned packages

Install in the new Rieter Package Manager: Gtkorphan

Execute command on terminal: sudo gtkorphan in the first option can be deleted

5. Remove the excess kernel

1. View the current kernel version

2. View kernel files

Dpkg--get-selections | grep ' Linux ' | grep ' Image '

3. Delete the old kernel file

sudo apt-get remove kernel file name

Linux Applications: System cleanup

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.