Re: A question on RedHat kernel RPM

Emmanuel Seyman <[email protected]> Fri, 26 Apr 2002 10:38:40 +0200
Newsgroups gmane.linux.redhat.release.zoot
Message-ID <[email protected]>
On Fri, Apr 26, 2002 at 10:00:58AM +0200, Giovanni Zanella wrote:
> Hi,
> 
> I have a stupid question:
> 
> on my Linux box with RedHat 6.2 kernel 2.2.14-5.0 I must update the
> kernel (2.2.19-6.2.16). On the site ftp://updates.redhat.com/6.2/en/os/
> I find 3 directory : i386 i586 i686. Which is the right one for my Linux
> box ? I have a Pentium III 450Mhz and when I load the operating system
> there is the following prompt:
> 
>      Red Hat Linux release 6.2 (Zoot)
>      Kernel 2.2.14-5.0 on an i686 
> 
> 
> I think the correct one is i686 directory but inside that directory
> there is only the package kernel-2.2.19-6.2.16.i686.rpm (the same on
> directory i586). Only the directory i386 contains all the kernel
> packages (kernel kernel-source kernel-utils kernel-headers etc.).
> Which package I must download ?

You'll need to get three directories: i386, i686 and noarch

Here's what I do to upgrade a newly installed machine:

rpm -Uvh db3-3*
rpm --rebuilddb
rpm -Fvh i386/rpm*rpm
rpm --rebuilddb
rpm -Fvh i386/mount* i386/losetup*
rpm -Fvh i686/glibc-* i386/kernel-*-2.2* i386/glibc-*-2.1*
rpm -ivh i686/kernel-2.2*

[ edit lilo to make the new kernel the default and the old one a backup ]

lilo
reboot

[ check that you are using the new kernel ]

rpm -Fvh i386/* noarch/*

You'll probably have to change a couple of things (I do custom installs)
but this should be mostly it.

Emmanuel