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.
Im using RH9, whats the best way to remove old versions of the kernel? Im now 3 or 4 versions backlogged and think I can safely remove my oldest one now.
Well, providing Redhat doens't play any funny games I don't know about. /usr/src/linux-version should contain the source for each kernel. /boot/vmlinuz-version or /boot/bzImage-version should be the kernel image. And you can removed enteries from grub.conf (or menu.lst) in /boot/grub.
I do this all the time whenever my newly compiled 2.6 kernels fail (always). Go to /boot and type:
rm *2.x*
where x is the minor kernel version, e.g. 4.20-18 if you're uninstallling kernel 2.4.20-18.
Make sure your symbolic links (config, system.map, initrd.img, vmlinuz) aren't broken. If they are, assign them to one of your new kernels.
Then go to /lib/modules
Type rm -drf *2.x* to delete kernel 2.x's modules
Yeah, I just don't like the idea of using wildcards when fooling around with kernel maintainance
Just oooone little misplaced space. "Oops. Better not reboot til I've compiled a new one..."
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.