Ubuntu command for deleting the residual file of the deleted package

Source: Internet
Author: User
Soon after I started using Ubuntu, windows users will still switch the problems encountered in windows to Ubuntu. We all know that every time in Windows, the system generates a large number of system spam files. The cached files generated by installation and uninstallation are everywhere and often cannot be deleted. To make your system slower, cleanup of System junk files is essential and often required. All the cached (temporary files) and configuration files in Ubuntu are in the user. the xxx or/tmp directory will still switch the problem encountered in windows to Ubuntu shortly after Ubuntu is used. We all know that every time in windows, the system generates a large number of system spam files. The cached files generated by installation and uninstallation are everywhere and often cannot be deleted. To make your system slower, cleanup of System junk files is essential and often required. All the cached (temporary files) and configuration files in Ubuntu are in the user. in the xxx or/tmp directory Management is very convenient. The temporary files in the/tmp directory are usually automatically cleared when the system is shut down, so you don't have to worry about it.

Use the autoremove command to delete the software that has not been uninstalled:

Sutos apt-get autoremove

Run the following command to clear the residual files (configuration files) left by the deleted installation package:

Dpkg-l | grep ^ rc | awk '{print $2}' | tr ["\ n"] [""] | sudo xargs dpkg-P-

E.g .:
Deimy @ deimy-desktop :~ $ Dpkg-l | grep ^ rc | awk '{print $2}' | tr ["\ n"] [""] | sudo xargs dpkg-P-

(Reading the database... the system currently has a total of 125637 files and directories installed .)
Deleting libt1-5...
Clearing configuration file for libt1-5...
Deleting xpdf-reader...
Clearing xpdf-reader configuration file...
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.