Linux clears cached files

Source: Internet
Author: User
Linux cleanup of cached files-Linux Release Technology-Debian information. The following is a detailed description. The "apt-get install" command First downloads the installation file of the software package to the directory "/var/cache/apt/archives/" during the installation of the software package, then install it. The more software packages installed using the "apt-get install" command in the system, the more deb packages saved in the directory, but these deb packages will occupy a large amount of hard disk space for a long time, therefore, regular cleanup is required.

The "apt-get clean" command is provided in Debian linux to safely and effectively clear files in the "/var/cache/apt/archives/" directory.

// View the packages saved in the "/var/cache/apt/archives/" Directory
# Ls/var/cache/apt/archives/
Gcc-4.1_4.1.1-21_i386.deb
Libssp0_4.1.1-21_i386.deb (partial)
Gcc_4 % 3a4. 1.1-15_i386.deb
Lock

// Clear the deb package in the cache
# Apt-get clean

// View the cache directory again
# Ls/var/cache/apt/archives/
Lock partial
// All deb packages have been cleared

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.