Skip to contentSkip to conversation

Kernel

DISCUSSION Paul Kraus 3 participants 3 messages Oct 23, 2002

lore
Share & tools
lore

Paul Kraus

author
#0 lore raw

On the Linux kernel archive they list 2.4.19 as the current stable kernel. When I click on this it downloads patch-2.4.19.
If I go through the directory on the ftp site they have both linux-2.4.19 (source for the kernel) and the patch-2.4.19. If you get the linux kernel .19 do you also need the patch? If so do you apply the patch to the source or to the compile kernel and how do you apply it? Any help would be appreciated.

Paul Kraus
Network Administrator
PEL Supply Company
216.267.5775 Voice
216-267-6176 Fax
www.pelsupply.com

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#1 lore raw
Quoted 5 lines

On the Linux kernel archive they list 2.4.19 as the current stable kernel. When I click on this it downloads patch-2.4.19.
If I go through the directory on the ftp site they have both linux-2.4.19 (source for the kernel) and the patch-2.4.19. If you get the linux kernel .19 do you also need the patch?

No. You only need the patch if you have the source to version .18 and want the source to version .19.

Quoted 2 lines

If so do you apply the patch to the source or to the compile kernel and how do you apply it?

The patch would be applied to the source of the previous kernel version. In general, patches are much, much smaller than full source distributions, so are easier to download, and more friendly on the various archive sites.

Different people will give you different recipes for applying patches, but the one I usually use goes like this:

1) Uncompress the patch.
2) cd to the directory where you have the source to the previous version.
3) ``patch -p1 < path_to_patch''

It's quite rare to find that a patch applies cleanly on the first attempt; go ``find -name '*.rej' | less'' from the source directory to find any complaints. These usually indicate that your source pool didn't quite match the version used to produce the patch (e.g. if you've specified an EXTRAVERSION in the top level Makefile), and should be reasonably easy to fix. If you find a reject file ``foo/bar.rej'', open up ``foo/bar.rej'' and ``foo/bar'' in a text editor, and apply the changes listed in ``foo/bar.rej'' to ``foo/bar''. (This is a lot easier than it sounds).

As always, you should try and use one of the mirrors if at all possible, rather than the main kernel archive.

Steven Smith,
[email protected].

#2 lore raw
In reply to Paul Kraus
Quoted 2 lines · Paul Kraus

On the Linux kernel archive they list 2.4.19 as the current stable kernel. When I click on this it downloads patch-2.4.19.

Just in case you didn't notice (and want to have the full source), just click on the "F" a bit to the right and you'll get the full source immediately.

Otherwise forget that i mentioned it ;)

HTH

--
Jos Lemmerling on Debian GNU/Linux jos(@)lemmerling(.net)

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs