[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Upgrading the Kernel in RH



I would not recommend upgrading an existing kernel.
You could land yourself in a pile of organic fertilizer.

Rather install the new kernel.

Instead of running

rpm -Fvh new_kernel.rpm, or rpm -Uvh new_kernel.rpm

better run:

rpm -ivh new_kernel.rpm

This will leave the old kernel and modules intact.

Then update /etc/lilo.conf to include the new kernel.
Do not make the new kernel your default until you have
run it for a while and found it stable and reliable with
all your hardware and apps.

If you are running from SCSI disk it will probably be
necessary to create an initrd image with all your
new modules before you try to reboot.

Do not forget to run lilo after you made the changes
and before you reboot. Lookout for any error messages.
A small typo can make your system unbootable and your
life difficult, especially if you do not have the
experience of fixing broken installations.

It is always a good idea to have separate boot floppy
(stiffy) for each os you have on the machine, just in
case!

You could always delete the old kernel (and modules)
long after you installed the new one.

Make the new kernel you default only when sure everything
runs perfectly under the new one. (Remember to run lilo
again after making the changes).

(Things are somewhat more complex if you compile your
own kernel).

Cheers

U


On Mon, 22 Oct 2001, Tzafrir Cohen wrote:

> Hi
>
> A couple of small notes
>
> On Sun, 21 Oct 2001, Nadav Har'El wrote:
>
> > On Sun, Oct 21, 2001, Ben-Nes Michael wrote about "Upgrading the
> > Kernel in RH":
>
> > Again, that's kernel-source.rpm. *do not* use kernel-*.srpm unless
> > you know what you're doing.
>
> The kernel .src.rpm is quite a messy one, full of patches. OTOH, if you
> ever wondered what patches redhat have added, this is the place to look
> at.
>
> > 	rpm -Fvh kernel-1.2.3.4.rpm
>
> rpm -Uvh kernel-1.2.3.4.rpm
>
> 'rpm -F' is the same as 'rpm -U' except that it will only upgrade
> existing packages. So if you didn't have a previous verision of that
> package already installed, the command will do nothing for you.
>
>

-- 
We need to answer some questions
We need to question some answers



=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il