LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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

Reply
 
LinkBack Search this Thread
Old 02-06-2004, 10:47 PM   #1
Rv5
Member
 
Registered: Sep 2003
Distribution: RedHat9
Posts: 114

Rep: Reputation: 15
Removing Kernel


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.
 
Old 02-06-2004, 11:34 PM   #2
jtshaw
Moderator
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 63
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.
 
Old 02-07-2004, 12:52 AM   #3
vincebs
Member
 
Registered: Oct 2003
Location: Mississauga, ON
Distribution: Ubuntu 9.04
Posts: 494

Rep: Reputation: 30
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

Then you're done!
 
Old 02-07-2004, 02:08 AM   #4
Rv5
Member
 
Registered: Sep 2003
Distribution: RedHat9
Posts: 114

Original Poster
Rep: Reputation: 15
very cool. thanks guys
 
Old 02-07-2004, 09:21 AM   #5
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
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..."

--Shade
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
removing old kernel versions ktt76 Fedora 3 12-01-2005 02:48 AM
Removing 2.4 kernel nny0000 Slackware 2 10-02-2005 03:56 AM
removing kernel source paulr1984 Linux - Newbie 3 03-12-2005 01:48 PM
removing old kernel wrongman Debian 2 05-03-2004 09:19 AM
removing custom Kernel ekoome Slackware 1 02-20-2004 05:42 AM


All times are GMT -5. The time now is 07:54 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration