LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 04-17-2007, 08:22 AM   #1
tkmsr
Member
 
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
http://kernel.org/pub/linux/kernel/v2.6/

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 08:25 AM.
 
Old 04-17-2007, 09:58 AM   #2
TylerK
LQ Newbie
 
Registered: Apr 2007
Posts: 4

Rep: Reputation: 0
http://docs.fedoraproject.org/releas...html#id2980667
 
Old 04-17-2007, 12:29 PM   #3
jack.kay
LQ Newbie
 
Registered: Apr 2007
Posts: 7

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

http://linuxera.com

jack
 
Old 04-17-2007, 04: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:
Code:
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:
Code:
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, 05:53 AM   #5
vishamr2000
Member
 
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 2.6.20.4) in a folder (say /usr/src/)
cd /usr/src/linux-2.6.20.4
make oldconfig
make
make modules_install
make install

Reboot..

This should do the trick..

As for kernel headers, you can always look for the at the http://download.fedora.redhat.com/pub folders online. You may find one for your kernel version.

Warm regards,
Visham
Regards,
Visham
 
  


Reply


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 11:19 AM
trying to find/install kernel-source or kernel-headers timsch75 Slackware 3 10-22-2005 09:17 AM
10.1 install kernel and kernel-source different - build fails Feebles Mandriva 2 06-10-2005 06:58 PM
Cant install kernel source? keith2045 SUSE / openSUSE 10 02-26-2005 07:11 PM
slackware kernel source install (kernel 2.6.6) ? LinuxOG Slackware 22 06-06-2004 04:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 01:44 PM.

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