How to clear the old Linux kernel

  

1. View the system's existing kernel dpkg --get-selections |  Grep linux2. Display the current kernel uname -a3. Upgrade the kernel sudo apt-get dist-upgrade4. Delete the kernel with the image file is deleted, be sure to write the full version and other characters. Other related files will be deleted automatically. Sudo apt-get remove --purge linux-image-2.6.32-24-generic5. Remove kernel sudo apt-get remove --purge linux-headers-2.6.32-24-generic6.update menu.listsudo update-grub7. System garbage cleanup sudo apt-get autoclean clean up the old version of the software cache sudo apt-get clean clean up all software cache sudo apt-get autoremove delete the system is no longer used in the isolated software 8. package management temporary file directory: /var /cache /Apt/archives is not downloaded in /var/cache/apt/archives/partial9. Clean up the cache file for opera firefox: ls ~/.opera/cache4ls ~/.mozilla/firefox/*.default/Cache

1, check the current kernel version: uname -a 2. Check all the 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

This was successfully deleted.

Copyright © Windows knowledge All Rights Reserved