Compatible Support Forums: how to get rid of old kernel?

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

how to get rid of old kernel?

#1 User is offline   ndering 

  • stranger
  • Group: Members
  • Posts: 12
  • Joined: 13-June 03

Posted 20 June 2003 - 06:23 AM

hi

i'm running red hat 9 and just compiled a new kernel...

now I have two kernels I can boot from at GRUB boot loader, my new kernel works just fine, so my question is how do i get rid of the old kernel? i don't just want to remove it as a boot option from the grub.conf file, so should i just delete the old kernel image from /boot?

thx in advance!
0

#2 User is offline   Norman 

  • stranger
  • Group: Members
  • Posts: 13
  • Joined: 03-May 03

Posted 20 June 2003 - 05:52 PM

What about removing the package of the old kernel using rpm ?
0

#3 User is offline   GhostSong 

  • member
  • Group: Members
  • Posts: 122
  • Joined: 22-October 01

Posted 15 July 2003 - 03:51 PM

Greeetings,

You can try with rpm -e k_defltXXX.rpm --nodeps ( same for it's source )

Otherwise

ls /usr/src/ and rm the old ones ( proceed with caution )

you need to make sure about modules as well , be cautious with the <M> during your kernel's configuration as well

Check /lib/modules ( caution with these )

As for the menu you can easily get rid of the options you dont need by reconfiguring your boot Loader,check /etc/sysconfig/ as well

Farewell
0

#4 User is offline   blueworm 

  • member
  • Group: Members
  • Posts: 169
  • Joined: 02-March 03

Posted 15 July 2003 - 06:35 PM

Ghostsong has explained it perfectly
As far as /lib/modules goes this is the actual contents of my /lib/modules
Code:
bash-2.05b$ pwd
/lib/modules
bash-2.05b$ ls
2.4.21  2.5.75  2.6.0-test1
bash-2.05b$

As you can see I have 3 kernels installed .
Simply deleat the kernel modules, of the kernel you no longer want.
for example
Code:
rm -Rf 2.5.75

You can do exactly the same in /usr/src
0

#5 User is offline   visjes 

  • stranger
  • Group: Members
  • Posts: 3
  • Joined: 22-July 03

Posted 22 July 2003 - 03:40 AM

Don't forget, if you're using a multi-boot system, to clean up your boot configs and re-run either LILO or Grub boot installers.

Mike
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users