PDA

View Full Version : after upgrading to new kernel?



darkpark
29th April 2006, 02:47 AM
I would like to know what is the common practice after having upgraded to a new kernel which has been running stable for a while? Do you leave the old kernel installed or do you uninstall it? If left uninstalled, should I comment it out from the GRUB boot menu?

Any suggestions/recommendations would be appreciated.

bob
29th April 2006, 03:00 AM
Have yum update your kernels and it will take care of the housekeeping for you. It installs the new kernel and then removes the oldest one. From what I've seen, it does leave the second newest kernel as a backup, just in case. Either use 'yum update kernel' or just 'yum update' and if a new kernel's present, you'll have it installed.

darkpark
29th April 2006, 03:08 AM
I upgraded my kernel that shipped with FC5 (2.6.15-1.2054) to 2.6.16-1.2080 and yum (yum extender) didn't uninstall it or remove it from the grub menu. I haven't had any problems with 2.6.16 so should I go ahead and uninstall the older one?

bob
29th April 2006, 03:13 AM
No, if it's the first update it will leave the other one as a backup but will remove it with the next kernel change. I'd always leave one extra in case of a kernel panic.

sfboarders
29th April 2006, 03:14 AM
How do you go abouts removing the old one safely? I just upgraded and I want to remove the old one.



[root@localhost ~]# rpm -qa | grep kernel
kernel-2.6.16-1.2096_FC5
kernel-2.6.15-1.2054_FC5
kernel-devel-2.6.16-1.2096_FC5

darkpark
29th April 2006, 03:28 AM
I think you can do it via Yumex. Go to the remove section and check its box to have it uninstalled.

blue13130
29th April 2006, 03:37 AM
sfboarders, you can also use the rpm command to remove the kernel
# rpm -e kernel-2.6.15-1.2054_FC5 (must run as root; -e means erase)

sfboarders
29th April 2006, 04:11 AM
sfboarders, you can also use the rpm command to remove the kernel
# rpm -e kernel-2.6.15-1.2054_FC5 (must run as root; -e means erase)

cool i was gonna do that but like i said "safely" i didn't want to break anything. Thanks for the reassurance. :)