<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Geoff,<br>
<br>
If you're using RHEL4, Redhat don't make a kernel-source RPM for
RHEL4... instead, you have to make your own kernel source tree from the
.src.rpm file for your kernel. I got the below stuff from a website
somewhere - I'd post the URL to it but I can't find it, so here's the
text (apologies and thanks to the author). Anyway, hope it helps...
ignore the stuff about NVidia drivers:<br>
<br>
<b>
<h3>So, you need the kernel-source for your FC3/RHEL-4 distro?</h3>
</b>These steps should save you some time, trouble and many headaches.
In the even that you neglected to read the release notes for
FC3...eh-hem...the FC project has decided not to supply the
kernel-source in order to prevent redundancy.
You see, the kernel-source tree can be extracted from the
kernel-*.src.rpm if you absolutely need it.
In my case, I needed to supply the --kernel-source-path when
(re)installing the lastest NVIDIA drivers (more on NVIDIA drivers
below...) after rebooting with a new kernel.
So, here are the steps that you <em>should</em> follow in order to
extract the kernel-source tree from the kernel-*.src.rpm:<br>
<b>Step (1).</b> Go find the kernel-*.src.rpm (#> locate
kernel-*.src.rpm) or download it from the Internets. For instance, you
could get it from <a
 href="http://download.fedora.redhat.com/pub/fedora/linux/core/updates/3/SRPMS/">here</a>.<br>
<b>Step (2).</b> Now you must install the rpm. As root, execute <font
 color="#3300cc"> #> rpm -Uvh kernel-*.src.rpm</font><br>
<b>Step (3).</b> The previous step should have created a
kernel-2.6.spec (or similarly kernel-2.4.spec if you're still on that
kernel) file in the /usr/src/redhat/SPECS/ directory. You must build
the rpm against this .spec file to get the binaries and source.<br>
As root, execute <font color="#3300cc">#> rpmbuild -bp
--target=noarch /usr/src/redhat/SPECS/kernel-2.6.spec</font><br>
<b>Step (4).</b> Create the necessary symbolic links for your directory
tree:<br>
<font color="#3300cc">#> cd /usr/src<br>
#> ln -s redhat/BUILD/kernel-2.6.10/linux-2.6.10/ linux<br>
#> ln -s redhat/BUILD/kernel-2.6.10/linux-2.6.10/ linux-2.6.10</font><br>
<b>Step (5).</b> Now we need to make the new .config files:<br>
<font color="#3300cc">#> cd /usr/src/linux-2.6.10<br>
#> make mrproper<br>
#> cp /usr/src/linux-2.6.10/configs/kernel-2.6.10-i686.config
/usr/src/linux-2.6.10/.config<br>
#> make oldconfig<br>
#> make menuconfig<br>
#> make</font><br>
Now, you have a kernel-source tree under /usr/src/linux-2.6.10 just
like you would if you had been supplied the kernel-source in the first
place. Note that the kernel numbers (i.e. 2.6, 2.6.10, etc.) and system
architecture numbers (i.e. i686) may be different for your situation.
Replace with correct numbers/information where necessary.
I was able to install the new NVIDIA drivers by executing:<br>
<font color="#3300cc">#> sh NVIDIA-Linux-x86-1.0-###-pkg1.run
--kernel-source-path /usr/src/linux-2.6.10</font><br>
<br>
<br>
Geoff Sweet wrote:
<blockquote
 cite="mid56CBB439E3ED3F4CA87A3BAB00075F544B432C@exch1.corp.wildtangent.com"
 type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta content="MSHTML 6.00.2900.2963" name="GENERATOR">
  <div><font face="Arial" size="2"><span class="464260102-06122006">I'm
trying to install kernel source from up2date... but help me out here,
am I going insane?  It is installed right?  That is what the devel
packages are right?</span></font></div>
  <div><font face="Arial" size="2"><span class="464260102-06122006"></span></font> </div>
  <div><font face="Arial" size="2">[gsweet@prodtool3 Dell_Open_Manage]$
rpm -qa | grep kernel<br>
kernel-smp-2.6.9-5.EL<br>
kernel-smp-2.6.9-34.EL<br>
kernel-2.6.9-34.EL<br>
kernel-utils-2.4-13.1.80<br>
kernel-2.6.9-5.EL<br>
kernel-smp-2.6.9-34.0.1.EL<br>
kernel-2.6.9-34.0.1.EL<br>
kernel-smp-devel-2.6.9-42.0.3.EL<br>
kernel-smp-2.6.9-22.0.1.EL<br>
kernel-2.6.9-22.0.1.EL<br>
kernel-doc-2.6.9-34.0.1.EL</font></div>
  <div> </div>
  <div> </div>
  <div><span class="464260102-06122006"><font face="Arial" size="2">I'm
trying to install Dell's Open Manage 5.0 onto this system and it isn't
finding the kernel-source.  I'm either totally missing this or I need
to quit my job as a Linux admin.  </font></span></div>
  <div><span class="464260102-06122006"></span> </div>
  <div><span class="464260102-06122006"></span> </div>
  <div><span class="464260102-06122006"><font face="Arial" size="2">Geoff
Sweet</font></span></div>
  <div><span class="464260102-06122006"><font face="Arial" size="2">Internet
Operations Engineer</font></span></div>
  <div><span class="464260102-06122006"><font face="Arial" size="2">WildTangent
Inc.</font></span></div>
  <div><span class="464260102-06122006"><font face="Arial" size="2"><a
 href="http://www.wildgames.com">http://www.wildgames.com</a></font></span></div>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
rhn-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rhn-users@redhat.com">rhn-users@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/rhn-users">https://www.redhat.com/mailman/listinfo/rhn-users</a></pre>
</blockquote>
</body>
</html>