-
atreyu
-
RE: How to remove kernel source ?
-
If you're absolutely [b]sure[/b] that you know your BAD KERNEL VERSION (e.g., 2.6.36), then you can do this to remove it:
[code]
rm -rf /lib/modules/{BAD_KERNEL_VER}/
rm -f /boot/vmlinuz-{BAD_KERNEL_VER}*
rm -f /boot/initrd-{BAD_KERNEL_VER}*
rm -f /boot/config-{BAD_KERNEL_VER}*
rm -f /boot/System.map-{BAD_KERNEL_VER}*
[/code]
The first command removes the bad kernel's installed modules. The rest of the commands remove the bad kernel image and any initial ramdisk images, system maps, and kernel config files.
You can always reinstall a Fedora-packaged kernel, too. First remove the entry from the RPM database:
[code]rpm -e --justdb kernel (or kernel-PAE) [/code]
Then reinstall it w/yum, e,g:
[code]yum install kernel (or kernel-PAE)[/code]
If you have multiple kernel packages installed, then you can do the above rpm/yum commands, but you have to pass the package version info with it, e.g.: kernel-2.6.36-1.fc10
List all installed kernels with:
[code]rpm -qa kernel (or kernel-PAE)[/code]
Of course, don't do any of this unless you're feeling bold!
-
20 May 11
If you're absolutely sure that you know your BAD KERNEL VERSION (e.g., 2.6.36), then you can do this to remove it:
rm -rf /lib/modules/{BAD_KERNEL_VER}/
rm -f /boot/vmlinuz-{BAD_KERNEL_VER}*
rm -f /boot/initrd-{BAD_KERNEL_VER}*
rm -f /boot/config-{BAD_KERNEL_VER}*
rm -f /boot/System.map-{BAD_KERNEL_VER}*
The first command removes the bad kernel's installed modules. The rest of the commands remove the bad kernel image and any initial ramdisk images, system maps, and kernel config files.
You can always reinstall a Fedora-packaged kernel, too. First remove the entry from the RPM database:
rpm -e --justdb kernel (or kernel-PAE)
Then reinstall it w/yum, e,g:
yum install kernel (or kernel-PAE)
If you have multiple kernel packages installed, then you can do the above rpm/yum commands, but you have to pass the package version info with it, e.g.: kernel-2.6.36-1.fc10
List all installed kernels with:
rpm -qa kernel (or kernel-PAE)
Of course, don't do any of this unless you're feeling bold!