TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TCLUG:13564] Patching Kernel Questions



George Swan wrote:
> 
> I've had the following successes before running into a wall.
> 
> I freshly installed Redhat Linux 6.0 out of the box choosing the install
> option
> "everything" when it asked me about packages to install.
[snip]
> But then I ran into a wall:
> I then saved a copy of of this new kernel in a separate unlinked directory
>     "cp -R /usr/src/linux-2.2.5-15 /usr/src/linux-2.2.5-15-old
> got a copy of patch-2.2.6.gz
>     "cd /usr/src/linux    - (links to /usr/src/linux-2.2.5-15)
> and ran
>     "zcat /root/patch-2.2.6.gz | patch -p1 -E"
>    ...and it failed.

The kernel source that came with RedHat 6.0 (and several other versions
of RedHat) has been patched to fix various little problems.  That is why
the kernel says it is version 2.2.5-15, rather than just 2.2.5.  The
patch to 2.2.6 will only work if you have a vanilla 2.2.5 kernel.  The
best course of action is to download the tarball for the newest kernel
version (yes, I know it's a huge pain on a modem, if that's what you
have to use).

Of course, once you get a vanilla kernel, you can patch it from then on
(well, until the 2.4 kernel, at least...)

-- 
 _  _  _  _ _  ___    _ _  _  ___ _ _  __   Microsoft Windows:  A 
/ \/ \(_)| ' // ._\  / - \(_)/ ./| ' /(__   virus with mouse support. 
\_||_/|_||_|_\\___/  \_-_/|_|\__\|_|_\ __)                             
 [ Mike Hicks | http://umn.edu/~hick0088/ | mailto:hick0088@umn.edu ]