Install Kernel Source
13 June 2005
Fedora no longer ships with the kernel-source RPM. You must install it
separately. This is NOT needed unless you wish to re-compile your
kernel.
The default kernel source can be found through any mirror. Look in the
directory "/4/i386/os/SRPMS/". An example from Fedora:
http://download.fedora.redhat.com/pub/fedora/linux/core/4/i386/os/SRPMS/
If you wish you you can obtain the source of your current runnint kernel.
Use the 'uname' command.
[root@charon fc4]# uname -r
2.6.11-1.1369_FC4
Select: kernel-2.6.11-1.1369_FC4.src.rpm 03-Jun-2005 13:32 41M
Install:
[root@charon fc4]# rpm -ivh kernel-2.6.11-1.1369_FC4.src.rpm
1:kernel ########################################### [100%]
Set it up:
[root@charon fc4]# rpmbuild -bp --target=noarch /usr/src/redhat/SPECS/kernel-2.6.spec
The source files will be properly located in '/usr/src/redhat/BUILD/kernel-2.6.11/'
This is clearly explained in the FC4 Release Notes - Kernel.