Delete old Linux Kernel

Source: Internet
Author: User
Due to the frequent updates and upgrades of fedora, it is necessary to clear the old kernel as follows:

1. view the kernel packages installed in the current system:
[Root @ knityster ~] # Rpm-Qa | grep Kernel
Kernel-headers-2.6.32.12-115.fc12.i686
Kernel-firmware-2.6.32.12-115.fc12.noarch
Kernel-PAE-devel-2.6.32.11-99.fc12.i686
Kernel-devel-2.6.32.12-115.fc12.i686
Kernel-PAE-2.6.32.11-99.fc12.i686
Kernel-PAE-devel-2.6.32.12-115.fc12.i686
Kernel-PAE-2.6.32.12-115.fc12.i686
Kernel-devel-2.6.32.11-99.fc12.i686
Abrt-addon-kerneloops-1.0.9-2.fc12.i686

2. view the currently used kernel:
[Root @ knityster ~] # Uname-R
2.6.32.12-115. fc12.i686. PAE

3. Confirm the kernel to be deleted:
Here is: kernel-PAE-2.6.32.11-99.fc12.i686

4. Delete the kernel:
[Root @ knityster ~] # Yum remove kernel-PAE-2.6.32.11-99.fc12.i686 after deleting the old kernel there is no previous recovery mode boot item, if you want to join it will execute a grub update. The specific approach is grub2-mkconfig-O/etc/grub2/grub. cfg get it done.

Note:
We do not recommend that you copy the kernel package from anywhere on the Internet. Instead, you can use the rpm-e method to delete the kernel package. Instead, you can use Yum remove to delete the kernel package,
Because Yum remove is used to delete a file, yum is automatically removed:/Boot/GRUB/menu. lst.

Finally,
Check Availability of kernel-related software such as vmwae virtualbox.# Linux
Original article link: Click to open the link

The following describes how to delete the Debian series:
Uname-A # Use this command to view the Kernel used by the current system.
Dpkg -- Get-selections | grep Linux # list the current kernel. The kernel with image is installed.
Run the following command to uninstall the SDK:
Sudo apt-Get remove linux-image-2.6.24-11-generic # Where the linux-image-2.6.24-11-generic is the version number, complete.

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.