Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 04-17-2007, 09:22 AM   #1
Registered: Oct 2006
Distribution: Ubuntu,Open Suse,Debian,Mac OS X
Posts: 798

Rep: Reputation: 39
how to install kernel source

I am using Fedora Core 6 the DVD that I had does not have any SRPM folder I had problem in using my lan card the driver I have wants kernel source
I googled a bit for source but
could not understand why the source are not given in installation DVD how to install kernel source if I download via http what directories or file to download
when I do a uname -r

I get the out put
Linux localhost.localdomain 2.6.18-1.2798.fc6xen #1 SMP Mon Oct 16 15:11:19 EDT 2006 i686 i686 i386 GNU/Linux

I went on the site not sure wether they have the kernel sources or where the host kernel sources

but I don't know which one is my kernel
it appears to be 2.6.18 but what is the fc6xen in out put of uname command I do on machine
what do I need to download and if I download do I need
to compile the new kernel (If I had to compile the new kernel then what is the use of older kernel )
In past I have tried to compile kernels but all failed to boot

is it possible via wget or yum to have the kernel sources installed (but my lan card is not working on linux so to be able to update via yum would not be possible I am asking that for my knowledge

Last edited by tkmsr; 04-17-2007 at 09:25 AM.
Old 04-17-2007, 10:58 AM   #2
LQ Newbie
Registered: Apr 2007
Posts: 4

Rep: Reputation: 0
Old 04-17-2007, 01:29 PM   #3
LQ Newbie
Registered: Apr 2007
Posts: 7

Rep: Reputation: 0
earlier i was feed up with this problem then Linuxera helps me

Old 04-17-2007, 05:47 PM   #4
Junior Hacker
Senior Member
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
In the Fedora DVD is a folder called "Fedora", in that folder should be another called "RPMS". Navigate into this folder from within a terminal and type:
ls kernel*
This will show you all packages that start with the word "kernel", you need to install "kernel-devel" and "kernel-headers" matching the same number version as the kernel installed with command:
rpm -ivh packagename.rpm
Replace "packagename" with the full name of the kernel-devel and kernel-header packages right down to the .rpm extension, you can put them in the same install command one after the other with a space between them.
Old 04-18-2007, 06:53 AM   #5
Registered: Aug 2004
Posts: 210

Rep: Reputation: 31
Hi to all,

You can use a new kernel if you want to add new functionalities not found in the old one..or for modifying Linux source code, though kernel headers can be for the latter as well.

If you want to compile a kernel, do these:

decompress a new kernel (say kernel in a folder (say /usr/src/)
cd /usr/src/linux-
make oldconfig
make modules_install
make install


This should do the trick..

As for kernel headers, you can always look for the at the folders online. You may find one for your kernel version.

Warm regards,


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Configure kernel source for standard debian kernel (module install) twinkers Debian 2 12-22-2005 12:19 PM
trying to find/install kernel-source or kernel-headers timsch75 Slackware 3 10-22-2005 10:17 AM
10.1 install kernel and kernel-source different - build fails Feebles Mandriva 2 06-10-2005 07:58 PM
Cant install kernel source? keith2045 SUSE / openSUSE 10 02-26-2005 08:11 PM
slackware kernel source install (kernel 2.6.6) ? LinuxOG Slackware 22 06-06-2004 05:34 PM > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 09:30 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration