Clear old Linux Kernel

Source: Internet
Author: User

1. view the existing kernel of the system
Dpkg -- Get-selections | grep Linux
2. display the current Kernel
Uname-
3. Upgrade the kernel
Sudo apt-Get dist-Upgrade
4. Delete the kernel
Files with an image need to be deleted and must contain all versions and other characters. Other related files are automatically deleted.
Sudo apt-Get remove -- purge linux-image-2.6.32-24-generic
5. Delete the kernel
Sudo apt-Get remove -- purge linux-headers-2.6.32-24-generic
6. Update menu. List
Sudo Update-grub
7. System spam cleaning
Sudo apt-Get autoclean clear old software Cache
Sudo apt-Get clean all software caches
Sudo apt-Get autoremove deletes isolated software that is no longer used by the System
8. Temporary File directory for package management:
/Var/Cache/APT/Archives
If the download is not completed
/Var/Cache/APT/archives/partial
9. Clear the cache files of opera Firefox:
Ls ~ /. Opera/cache4
Ls ~ /. Mozilla/Firefox/*. Default/Cache

1. Check the current kernel version: uname-.
2. Check all kernel files in the current system: dpkg -- Get-selections | grep Linux
3. Delete the kernel file:
Sudo apt-Get remove linux-headers-2.6.32-24-generic
Sudo apt-Get remove linux-headers-2.6.32-24
Sudo apt-Get remove linux-image-2.6.35-22-generic

In this way, the deletion is successful.

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.