<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Kvetch wrote:<br>
<br>
<span style="white-space: pre;">>No, isn't that just the source
for building another binary rpm, not<br>
>the actual source of the kernel? I am looking for the actual
source<br>
>of the kernel like<br>
><a class="moz-txt-link-freetext" href="https://rhn.redhat.com/network/software/packages/details.pxt?pid=313934">https://rhn.redhat.com/network/software/packages/details.pxt?pid=313934</a><br>
><a class="moz-txt-link-freetext" href="https://rhn.redhat.com/network/software/packages/name_overview.pxt?package_name=kernel-source&channel_arch_ia32=&channel_arch_ia64=&channel_arch_x86_64=&search_subscribed_channels=1">https://rhn.redhat.com/network/software/packages/name_overview.pxt?package_name=kernel-source&channel_arch_ia32=&channel_arch_ia64=&channel_arch_x86_64=&search_subscribed_channels=1</a></span><br>
<br>
The RELEASE-NOTES-en for RHEL-4 says: <br>
o In order to eliminate the redundancy inherent in providing a
separate<br>
package for the kernel source code when that source code
already<br>
exists in the kernel's .src.rpm file, Red Hat Enterprise Linux
4 no<br>
longer includes the kernel-source package. Users that require
access<br>
to the kernel sources can find them in the kernel .src.rpm
file. To<br>
create an exploded source tree from this file, perform the
following<br>
steps (note that <version> refers to the version
specification for<br>
your currently-running kernel):<br>
<br>
1. Obtain the kernel-<version>.src.rpm file from one
of the<br>
following sources:<br>
<br>
o The SRPMS directory on the appropriate "SRPMS" CD
iso image<br>
<br>
o The FTP site where you got the kernel package<br>
<br>
o By running the following command:<br>
<br>
up2date --get-source kernel<br>
<br>
2. Install kernel-<version>.src.rpm (given the default
RPM<br>
configuration, the files this package contains will be
written to<br>
/usr/src/redhat/)<br>
<br>
3. Change directory to /usr/src/redhat/SPECS/, and issue the<br>
following command:<br>
<br>
rpmbuild -bp --target=<arch> kernel.spec<br>
<br>
(Where <arch> is the desired target architecture.)<br>
<br>
On a default RPM configuration, the kernel tree will be
located<br>
in /usr/src/redhat/BUILD/.<br>
<br>
4. In resulting tree, the configurations for the specific
kernels<br>
shipped in Red Hat Enterprise Linux 4 are in the /configs/<br>
directory. For example, the i686 SMP configuration file
is named<br>
/configs/kernel-<version>-i686-smp.config. Issue
the following<br>
command to place the desired configuration file in the
proper<br>
place for building:<br>
<br>
cp <desired-file> ./.config<br>
<br>
5. Issue the following command:<br>
<br>
make oldconfig<br>
<br>
Best Regards<br>
Günter<br>
<br>
--<br>
Dr. Günter Schmidt | E-Mail: <a class="moz-txt-link-abbreviated" href="mailto:gsc@bruker.de">gsc@bruker.de</a><br>
NMR Software | Tel: +49 721 5161 443<br>
Bruker BioSpin GmbH | Fax: +49 721 5161 480<br>
<br>
</body>
</html>