Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I have a bunch of older kernels on my system now and I'm using the latest according to redhat 8's up2date applet. My question is how do I get rid of these older kernels? I know how to remove the entries in GRUB, but I'm interested in freeing up some disk space. Will I be saving a lot of space if I delete an older kernel?
If you installed the kernels from source just delete the image in /boot, the ramdisk image (if any) and the according System.map (if any), then delete the modules /lib/modules-kernelversion and the kernel source in /usr/src/linux-kernelversion
But make sure you don't delete things of your actual kernel
If you've removed the entries from your grub conf then you can safely delete the kernel images, you won't save a huge amount of space though, kernel images are usually small enough to fit on a floppy, where you can free up some space is by deleting the kernel modules that belong to the old kernels, have a look in /lib/modules/<old-kernel-versions>
Someone correct me if I am wrong, but you probably should use the "rpm -e" method so that the rpm database doesn't get all fouled up. That is assuming that you are installing the new kernels with a "rpm -i" option.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.