LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-23-2006, 02:56 AM   #1
ashley_31
Member
 
Registered: May 2006
Location: India
Distribution: RedHat Enterprise Linux (Kernel 2.6)
Posts: 42

Rep: Reputation: 15
kernel source code


hi friends...
Can anyone please tell me where is the red hat 2.6 kernel source code placed in our system.
Thank u..
 
Old 05-23-2006, 03:01 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Red Hat 2.6? Wow - that's an old-old version...

OK - you mean: kernel version 2.6.xy right?
Red hat keeps all the kernel stuff in /usr/src/kernel/<kernel version>

Recent RedHat's do not ship with kernel source. You must install it seperately.
 
Old 05-23-2006, 03:02 AM   #3
dubz_444
Member
 
Registered: Mar 2006
Location: South Africa
Distribution: Arch Linux
Posts: 43

Rep: Reputation: 15
if you choose to install it, its in /usr/src/linux
 
Old 05-23-2006, 03:12 AM   #4
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Argh! My bad ... yeah: /usr/src/linux/<kernel version>
(scrmm-mf skrggle f'qrumpf!) <thump!> OW! (Keyboards are hard and knobbly...)
 
Old 05-23-2006, 03:24 AM   #5
dubz_444
Member
 
Registered: Mar 2006
Location: South Africa
Distribution: Arch Linux
Posts: 43

Rep: Reputation: 15
no you were correct


/usr/src/linux is just a link to /usr/src/linux-<kernel version number>... well it should be!
 
Old 05-23-2006, 03:35 AM   #6
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
no you were correct
Well... I'm not gonna argue with you cheers.
 
Old 05-23-2006, 03:55 AM   #7
ashley_31
Member
 
Registered: May 2006
Location: India
Distribution: RedHat Enterprise Linux (Kernel 2.6)
Posts: 42

Original Poster
Rep: Reputation: 15
dont fight people...
its okk...
if the source code is not present there, from where do i need to install it separately..??
 
Old 05-23-2006, 03:57 AM   #8
dubz_444
Member
 
Registered: Mar 2006
Location: South Africa
Distribution: Arch Linux
Posts: 43

Rep: Reputation: 15
just install the rpm from disk

its called kernel-source-2.blah.blah

rpm -Uvh <package name> as root.


p.s. we werent fighting...pffft
 
Old 05-23-2006, 06:37 AM   #9
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
Originally Posted by Ashley 31
if the source code is not present there, from where do i need to install it separately
Quote:
Originally Posted by dubz 444
just install the rpm from disk
Do we know Ash's distro yet?

If this is RedHat 9 or less, then the kernel source is on one of those install CDs (unless you got the "publishers edition") Otherwise you have to go hunt for it. (Easier to install a vanilla kernel and its source. Though you may get lucky with the fedora legacy project.)

If this is RHEL, then the sources will be available via uptodate from the redhat servers.
 
Old 05-23-2006, 12:25 PM   #10
dubz_444
Member
 
Registered: Mar 2006
Location: South Africa
Distribution: Arch Linux
Posts: 43

Rep: Reputation: 15
imho i believe that vanilla kernels are better, but thats just my view.no reason for that really.


so just download it from one of ftp.kernel.org's mirrors and go from there.

--mirrors--
ftp.up.ac.za/mirrors/ftp.kernel.org


try not to use ftp.kernel.org as they prefer you to use a mirror!
 
Old 05-23-2006, 04:47 PM   #11
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Actually - just had a good post from nOObified in this thread here which explains where to find rpms and stuff for RH9.

I always ran RH9 under a vanilla kernel myself - though I usually advise newbies to get a distro kernel if they can. At least keep the one that the distro came with: you know that one works.

The trick is getting everything you need compiled in. However, the tools have got so much more useable since the old 2.4.20-9 ... the main advantage is that only what you need is in there and it is compiled exactly for your system. (The main disadvantage is that it is you doing the compiling.) It's worth doing at least once for the object lesson, even if you don't use the kernel.

With RH9, you'd be lucky to get precompiled (recent) kernels.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Want 2.6.9-5 kernel source code bishalpoudyal Conectiva 1 04-13-2006 11:23 AM
FC 3 kernel source code sharathg786 Fedora 2 02-26-2006 11:53 AM
where to D/L kernel source code Almazick Linux - Software 6 09-03-2004 03:41 PM
kernel source code nabil_boussetta Linux - Software 7 02-13-2004 06:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:31 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
Open Source Consulting | Domain Registration