how to get rid of old kernel?

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 bo...




Topic Options
#2115 - 06/20/03 06:23 AM how to get rid of old kernel?
ndering Offline
stranger

Registered: 06/13/03
Posts: 12
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!

Top
Advertisement
#2121 - 06/20/03 05:52 PM Re: how to get rid of old kernel?
Norman Offline
stranger

Registered: 05/03/03
Posts: 13
What about removing the package of the old kernel using rpm ?

Top
#2318 - 07/15/03 03:51 PM Re: how to get rid of old kernel?
GhostSong Offline
member

Registered: 10/22/01
Posts: 122
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

Top
#2324 - 07/15/03 06:35 PM Re: how to get rid of old kernel?
blueworm Offline
member

Registered: 03/02/03
Posts: 169
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

Top
#2402 - 07/22/03 03:40 AM Re: how to get rid of old kernel?
visjes Offline
stranger

Registered: 07/22/03
Posts: 3
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

Top


Forums
Windows Support Forums
Everything New Technology
Legacy OS
Hardware
Software
Games
Networking
Customization & Tweaking
Security

Linux Support Forums
Everything Linux
Linux Hardware
Linux Software
Linux Games
Linux Networking
Linux Customization & Tweaking
Linux Security

Apple Support Forums
Everything Apple
Recent Topics
Carmageddon 2 weird
by Kuikie
12/29/09 04:32 PM
Computer Repair Utility Kit
by gailerl
12/28/09 01:26 PM
x86 OS, RAM, & Virtual Machines
by Myke
12/22/09 08:16 PM
Ram Question
by JohnnyAshes
12/21/09 09:50 PM
NEWBIE needs help with REALTEK
by SerryJW
12/21/09 06:09 AM
Who's Online
0 Registered (), 209 Guests and 50 Spiders online.
Key: Admin, Global Mod, Mod
Forum Stats
91435 Members
24 Forums
59414 Topics
189950 Posts

Max Online: 1079 @ 03/12/08 01:36 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22