Subject: | |
From: | |
Reply To: | |
Date: | Thu, 9 Feb 2006 09:58:06 -0800 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
On Thu, Feb 09, 2006 at 12:09:41PM -0500, Gary Wilson wrote:
> How can I install the kernel sources on SL 4.2 using yum?
>
> Thanks,
> Gary Wilson
If all you need is headers sufficient to build a module,
yum install kernel-devel
or
yum install kernel-smp-devel
should do it. If you need the full source, I'm not sure how to use yum, but
you can get the rpm matching your kernel from:
ftp://ftp.scientificlinux.org/linux/scientific/40rolling/SRPMS/vendor/original/
or updates:
ftp://ftp.scientificlinux.org/linux/scientific/40rolling/SRPMS/vendor/errata/
or your local mirror, and then use rpm to install it, ie:
mkdir -p /usr/src/redhat/SOURCES (dir may not exist causing error)
rpm -ivh <kernel rpm filename>
I briefly played with a yum command that "should" work:
yum localinstall <kernel rpm filename>
but it failed with the error:
[root@grolsch errata]# yum localinstall kernel-2.6.9-22.0.2.EL.src.rpm
Loading "kernel-module" plugin
Setting up Local Package Process
Examining kernel-2.6.9-22.0.2.EL.src.rpm: kernel - 2.6.9-22.0.2.EL.ppc64iseries
kernel-2.6.9-22.0.2.EL.src.rpm: does not update installed package.
kernel-2.6.9-22.0.2.EL.src.rpm: does not update installed package.
Nothing to do
[root@grolsch errata]#
If anyone wants to investigate that yum error, I'd be happy to help test.
Hope this helps.
Chris
--
Chris Payne ISAC Operations Controls System Manager
"Relax Snap, this is particle physics, not rocket science."
|
|
|