[PLUG] Re: Kernel removal

Mark Martin mmartin at u.washington.edu
Mon Dec 9 05:14:43 UTC 2002


In my indefensible defense, Red Hat's kernel upgrade instructions always say 
to use "rpm -Uvh" when performing a kernel upgrade.  However, as you have 
rightfully pointed out, Russ, this is bad advice.

On Sunday 08 December 2002 21:59, Russ Johnson wrote:
> Mark Martin wrote:
> >You guys are making this WAY too complicated.  When you install a new
> > kernel package on an RPM-based system (assuming that you're using lilo),
> >
> >1. Install the corresponding kernel package(s) using the -i flag.  (-U is
> >superfluous but generally harmless.)
>
> No, -U isn't "superfluous but generally harmless". -U will cause RPM to
> remove the current kernel and modules. -i causes the kernel to be installed
> along side the current kernel. Most of the time, this is OK, and
> everythings works as expected. There is a rare occurence of bad
> installation, where the new kernel won't load. If you don't have the old
> kernel on the system anymore, then you get to fix it after using a boot
> disk.
>
> >5. If the system comes up without difficulty, you'll probably want to make
> > the new kernel the default kernel (if the RPM package hasn't already done
> > this for you).
>
> If you only had one kernel, -U *WILL* replace the known good kernel with
> the new kernel, and make it the default.
>
> >6. If you want to remove the old kernel, use RPM with the -e flag and a
> > long enough version of the old kernel package name to distiguish it from
> > any other installed kernel package names.
>
> If you used -U, then this is done during the install of the new kernel.





More information about the PLUG mailing list