Full cleaning of Ubuntu Systems

Source: Internet
Author: User
Tags clear browser cache
Abstract: This article systematically introduces how to clean up Ubuntu systems, including deleting residual configuration files, clearing downloaded cache packages, clearing unnecessary packages, and clearing useless language files, this section details how to delete the old kernel image. As the Ubuntu system grows, it sometimes prompts & rdquo; Insufficient disk space & ldquo;. This article describes how to clean up the Ubuntu system. I. Basic cleanup 1.1 Delete residual configuration files. In general, when we delete the remaining configuration files from the Ubuntu system

Abstract:

This article systematically introduces how to clean up Ubuntu systems, including deleting residual configuration files, clearing downloaded cache packages, clearing unnecessary packages, and clearing useless language files, this section details how to delete the old kernel image.

As the Ubuntu system grows, it sometimes prompts "insufficient disk space". This article describes how to clean up the Ubuntu system.

I. Basic cleanup

1.1 Delete residual configuration files

Generally, after a software is deleted from the Ubuntu system, the residual configuration file of the software is not deleted. If you are sure that you will not use the software in the future, it is unnecessary to keep its configuration file, so we can delete it together. The procedure is as follows:

Sudo synaptic open the new software package manager and click Status --> Not installed (residual config) on the left) --> Ctrl + A select all the packages on the right --> right-click Mark for Complete Removal --> click the Apply button on the toolbar.

1.2 clear the downloaded cache package

When sudo apt-get install is used to install the software, all downloaded packages are cached in the/var/cache/apt/archives/directory. To clear these downloaded cache packages, run the following command: sudo apt-get autoclean; sudo apt-get clean.

1.3 clear unnecessary packages

When installing software in Ubuntu, the dependencies of the software are usually automatically installed. After the software is deleted, its Dependencies may need to be manually deleted. Run the sudo apt-get autoremove command to solve this problem.

1.4 clear useless language files.

Ubuntu is a system that supports multi-language interfaces. You can use the localepurge tool to delete useless regional configuration files from other systems while retaining the required regional configuration, this will naturally free up a lot of disk space for you.

Run the sudo apt-get install localepurge command to install the tool. During the installation process, a prompt is displayed for configuration. The space key selects the region configuration to be retained. You can only select en, and cn * (cn_SG and so on refer to Singapore, you can leave it unselected ). This tool will also be automatically executed when you install the program later. Do not configure it again.

. After installation, execute localepurge in the command line to clean up. In addition, you can use vim/etc/locale. nopurge to view the configuration file of localepurge.

1.5 clear useless translation content

You can use the trans-purge tool to clear useless translation content in *. desktop, mime-database, and gconf schema. I think it is quite troublesome. I have never tried it.

1.6 clear isolated library files

Run sudo deborphan | xargs sudo apt-get-y remove -- purge to clear isolated library files. You can also use the gtkorpha graphical interface tool for cleanup.

1.7 create a new filter

When you configure the upgrade, do not upgrade the isolated Package: System --> Administration --> Synaptic Package Manager --> menu bar Settings --> Filters --> click Upgradable (upstream) on the left ), hook Orphaned to the right.

1.8 clear browser cache

Firefox: rm. mozilla/firefox/*. default/Cache

Chrome: Clear the browser window directly, click the wrench icon on the toolbar of the browser --> options --> advanced options --> clear browsing data.

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.