PDA

View Full Version : where to find linux-2.6.22.1.27 FC7 sources



jainraje
31st July 2007, 04:14 PM
Where can I find sources for the exact kernel used on my FC7 distro?

From /boot, system appears to includes linux-2.6.22.1-27 and linux-2.6.22-33 kernels. I'd like to rebuild the 2.6.22.1-27 version.

Does FC7 kernel use sources as is from kernel.org or are there modifications applied?

Thanks in advance.

--Rj

lazlow
31st July 2007, 06:13 PM
Fedora uses modified kernels.

You can enable the source repo for yum. /etc/yum.repos.d/fedora.repo and chnage enable=0 to enable =1 for the {fedora-source} section.

leigh123linux
31st July 2007, 06:16 PM
Try here



http://koji.fedoraproject.org/packages/kernel/2.6.22.1/27.fc7/src/kernel-2.6.22.1-27.fc7.src.rpm

jainraje
1st August 2007, 10:43 PM
Many thanks. Is there a location where these are stored in gz or .bz format? Not a rpm expert (yet), what is the command to extract the contents from the rpm package to a target directory?

jainraje
1st August 2007, 11:07 PM
Actually what I'm looking for are pointers on howto apply these patches to recreate the FC7 kernel.

TIA

lazlow
1st August 2007, 11:49 PM
If you right click on the Srpm and look at it with the archive manager you will see lots of useful stuff including the tar.bz2 of the main kernel. You can extract it if you wish.

leigh123linux
2nd August 2007, 12:19 AM
I install srpms ( it installs to the build directory ) with this command


rpm -i nameof.src.rpm



or just build the src.rpm


rpmbuild --rebuild nameof.src.rpm