[CentOS] kernel sourcecode ?
mailing-lists at hughesjr.com
Wed Oct 19 17:24:57 UTC 2005
On Wed, 2005-10-19 at 16:26 +0100, Mário Gamito wrote:
> No, that's not that. You're mistaken.
> Until 4.1, there was a kernel-sourcecode-2.6.9 RPM.
> Now in there isn't.
> So, again, where is the kernel's sourcecode ?
> Warm Regards,
> Mário Gamito
The Kernel sourcecode is not like kernel-source. It is a noarch rpm
that does not get arch specific patches added to the source, making it
relatively worthless as a package for building kernels.
Because of that, and because it is not down by either fedora or the
upstream provider, we are also no longer producing a kernel-sourcecode
If one needs a full kernel tree, they can download the kernel SRPM from
Then install the source with the command:
rpm -i kernel-xxxx.src.rpm
Then go to the SPECS directory (Usually /usr/src/redhat/SPECS) and get
a full kernel tree with the command:
rpmbuild -bp --target i686 kernel-2.6.spec
(substitute your target arch)
Then go to the BUILD directory and you will have a real (and patched)
> Karanbir Singh wrote:
> > Mário Gamito wrote:
> >> I've just installed CentOS 4.2
> >> I must recompile the kernel and for that i used to do a "yum install
> >> kernel-sourcecode".
> >> Now, it doesn't works anymore.
> >> In /usr/src/kernels/... compiling gives an error straight from the start.
> >> Where is now kernel's source code ?
> > short answer : "yum install kernel-devel", if that does not work get
> > the .src.rpm for the kernel version and manually install that.
> > - K
> CentOS mailing list
> CentOS at centos.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.centos.org/pipermail/centos/attachments/20051019/32727704/attachment.bin
More information about the CentOS