LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-23-2005, 08:49 PM   #1
efanning
Member
 
Registered: Jul 2004
Distribution: Right now - Ubuntu 7.04
Posts: 81

Rep: Reputation: 15
Kernel Source in FC3


Please help the brain dead!! I'm trying to figure out if I installed the Kernel Source but for the life of me can't remember where to find it. Also, if I find out it's not installed, what's the RPM name that I'm looking for on the CD's to install it.

Thanks!!

efanning
 
Old 01-23-2005, 09:27 PM   #2
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
rpm -qa | grep kernel

it will output all rpm's installed with the word kernel in it.

kernel source is either named kernel-devel or kernel-source.
 
Old 01-24-2005, 09:47 AM   #3
efanning
Member
 
Registered: Jul 2004
Distribution: Right now - Ubuntu 7.04
Posts: 81

Original Poster
Rep: Reputation: 15
Thanks GW!! I did what you said and I do not have the source loaded. Now I have to figure out where they are on the CD's.

efanning
 
Old 01-24-2005, 11:10 AM   #4
ben_build#2.1.0
Member
 
Registered: Apr 2004
Distribution: Fedora Core 3
Posts: 240

Rep: Reputation: 30
Quote:
Originally posted by efanning
Thanks GW!! I did what you said and I do not have the source loaded. Now I have to figure out where they are on the CD's.

efanning
they aren't on the cds. google for "kernel-1.6.9-1.667.src.rpm" or something to the tune of that.
 
Old 01-24-2005, 11:35 AM   #5
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
(he meant kernel-2.6.9xxxxx, although a 1.6.9 kernel might be amusing )
 
Old 01-24-2005, 11:51 AM   #6
RHLinuxGUY
Member
 
Registered: Oct 2003
Distribution: Ubuntu 7.04
Posts: 889
Blog Entries: 1

Rep: Reputation: 30
Fedora can die. They don't even have the damn kernel source anymore. RedHat is taking the free out of freedom, and making it dumb.
 
Old 01-24-2005, 12:02 PM   #7
efanning
Member
 
Registered: Jul 2004
Distribution: Right now - Ubuntu 7.04
Posts: 81

Original Poster
Rep: Reputation: 15
Prior to my HDD crashing, I had it dual bootable for XP and FC3. I know when I loaded FC3 I completely removed FC2 and started over. While installing FC3 I remember installing the kernel source, so I know that it comes with it.

After getting my new HDD, I neglected to reinstall the source and I'm just looking for it to install off the CD's. What I might do is just reinstall FC3 again. There's nothing on it!! It's still a fresh install so anything I'm losing is time.

Thank you all for your help!!

Eric
 
Old 01-24-2005, 12:22 PM   #8
shreks
Member
 
Registered: Aug 2004
Posts: 79

Rep: Reputation: 15
The reason why Redhat removed the kernel source package is to save diskspace, I think, while keeping all the functionalities of kernel source. That is to say that you don't need the kernel source tree to install some softwares that need to build their own kernel modules. All the information are located in the direcotry /lib/modules/2.6.x-xxx/build/. This saves lots of diskspace, e.g. the compiled source kernel tree uses 1.2 GB diskspace. However if you need to recompile Linux kernel, you absolutely need the kernel source, which can be done as the following steps:

0) Make sure that you have internet access.

1) Login as root and issue the command:

up2date --get-source kernel

Then the source of the latest kernel will downloaded to the directory /var/spool/up2date/ in the form of kernel-2.6.x-xxx.src.rpm.

2) Install the kernel source:

rpm -ivh kernel-2.6.x-xxx.src.rpm

This will install the kernel source files to /usr/src/redhat/SOURCES and /usr/src/redhat/SPECS.

3) Prepare the kernel source tree from the kernel source RPM file by:

cd /usr/src/redhat/SPECS
rpmbuild -bp --target=i686 kernel-2.6.spec

This will create the kernel source tree in the directory /usr/src/redhat/BUILD/

Now you have the kernel source ready for customization. Hope this helps!
 
Old 01-24-2005, 01:40 PM   #9
efanning
Member
 
Registered: Jul 2004
Distribution: Right now - Ubuntu 7.04
Posts: 81

Original Poster
Rep: Reputation: 15
Wow, thanks shreks!! I'm sure that this will help out tremendously. Thank you for the detailed directions.

Eric
 
Old 01-25-2005, 10:23 AM   #10
ben_build#2.1.0
Member
 
Registered: Apr 2004
Distribution: Fedora Core 3
Posts: 240

Rep: Reputation: 30
Quote:
Originally posted by qwijibow
(he meant kernel-2.6.9xxxxx, although a 1.6.9 kernel might be amusing )
lol. whoops. thanks.
 
Old 01-25-2005, 11:27 AM   #11
csfalcon
Member
 
Registered: Jun 2004
Location: MD
Distribution: Fedora Core
Posts: 269

Rep: Reputation: 31
Yeah, it sucked when I had to compile my network card driver. Luckly I had another computer with CD burner.
 
Old 01-25-2005, 01:30 PM   #12
efanning
Member
 
Registered: Jul 2004
Distribution: Right now - Ubuntu 7.04
Posts: 81

Original Poster
Rep: Reputation: 15
Well thanks for all your help gang!! I just found out that I don't need the source like I originally thought. If I would just RTFE (E = Errors) then I would realize that I needed the gcc compiler.
 
  


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
Cannot find FC3 kernel source majara Fedora 3 11-14-2005 02:29 AM
kernel source and .o to .ko objects (fc3) kahn Fedora 2 04-10-2005 05:30 AM
Installing Kernel Source in FC3 yamp66 Linux - Software 2 02-15-2005 03:52 PM
Where do I get the kernel source for FC3? deadmilkman Fedora 3 12-27-2004 04:22 PM
FC3 missing kernel source??? Supp0rtLinux Fedora 6 11-22-2004 04:02 PM

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

All times are GMT -5. The time now is 08:54 AM.

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