LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices

Reply
 
Search this Thread
Old 04-25-2011, 10:33 AM   #1
vl chowdary
LQ Newbie
 
Registered: Mar 2011
Posts: 5

Rep: Reputation: 0
How to download source code for Redhat Linux Enterprize Version 2.6.18-128.el5 ?


Hi mates,
I am working on "Redhat Linux Enterprize version 2.6.18-128.el5" . I downloaded the source code for Linux version 2.6.18 from www.kernel.org. I hope it is a source code for normal version. But when i look into my "Linux Enterprize version 2.6.18-128.el5" file structure using /usr/src/kernel/ commands, it is showing very much variation with the one i got the source code for. Further,i couldn't get the source code for my enterprize Linux version. So, my question is "Do the source codes for normal versions and enterprize versions of Redhat Linux much variates?. If yes, how to download the source codes for my "Redhat Linux Enterprize version 2.6.18-128.el5" .
If anybody know the details, kindly share with me.
Advance thanks to all repliers

Thanks
vlc
 
Old 04-25-2011, 11:50 AM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, Ubuntu, SLES, CentOS
Posts: 1,790

Rep: Reputation: 324Reputation: 324Reputation: 324Reputation: 324
@ Reply

Hi there,

You can download the source code for the version of linux you are using from: ftp://ftp.redhat.com/redhat/linux/en...r/en/os/SRPMS/

Also, how did you find that you are using 2.6.18-128.el5. Did you find by uname -a?

Also if I am not wrong RHEL comes with 2.6.18-8.el5. Did you patched up the kernel?

Last edited by T3RM1NVT0R; 04-25-2011 at 12:11 PM.
 
Old 04-25-2011, 12:14 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,624

Rep: Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528
Quote:
RHEL comes with 2.6.18-9.el5
T3RM1NVT0R, please read the link provided by T3RM1NVT0R,
to see that 2.6.18.8 is dated "2007".

The current version is kernel-2.6.18-238.9 : '22-03-2011'.

( 2.6.18-128 is from 2009.)
 
1 members found this post helpful.
Old 04-25-2011, 12:25 PM   #4
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, Ubuntu, SLES, CentOS
Posts: 1,790

Rep: Reputation: 324Reputation: 324Reputation: 324Reputation: 324
@ Reply

Hi knudfl,

I realized after few minutes that I wrote 2.6.18.9.el5 instead of 2.6.18.8.el5 :-) which come as default, I edited it lately.

Sorry for the typo...

Last edited by T3RM1NVT0R; 04-25-2011 at 12:39 PM.
 
Old 04-26-2011, 01:09 AM   #5
hf2046
Member
 
Registered: Mar 2011
Distribution: Slack64
Posts: 109

Rep: Reputation: 20
RHEL kernels are heavily patched - the development team 'backports' certain features from the mainline kernels. That is the main reason why you'll find a lot of differences between the kernel you download from Red Hat vs. kernel.org
 
Old 04-26-2011, 03:45 AM   #6
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,622
Blog Entries: 29

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
It would also help if you could tell, "why" do you need to download the source code of the kernel?
 
Old 05-11-2011, 12:32 PM   #7
edprochak
LQ Newbie
 
Registered: Apr 2011
Location: Ohio
Distribution: Oracle/RedHat
Posts: 3

Rep: Reputation: 0
HI,

I am not the original poster, but I have a similar need. I am using Red Hat Enterprise Linux 5.3 (version 2.6.18-128.el5) as supplied by DELL. As it happens I have the installation disc for 64bit processors which is what we will be using. However to keep our development moving forward, I need to test some hardware which we currently only have a 5v PCI card. Our servers do not have any slots that accept this form factor. I have an older machine, but (no surprise) it only has a 32bit processor!

I realize I will need to upgrade the kernel eventually. Unfortunately in this cycle (2.6.*), the kernel developers have seen fit to make changes the break driver builds. I'm new to LINUX driver development, so I am staying with this kernel for now. My only other alternative is to cross compile the 32bit kernel on the 64bit server and install on the 32bit test machine. That may be more work than my schedule allows.

To summarize:
hardware to be tested only fits in a 32bit machine.
need to run the 2.6.18-128.el5 kernel (I am testing device drivers and this is the kernel that works right now)
So I want the install image for RHEL 5.3 for 32bit machines.
 
Old 05-11-2011, 02:45 PM   #8
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, Ubuntu, SLES, CentOS
Posts: 1,790

Rep: Reputation: 324Reputation: 324Reputation: 324Reputation: 324
@ Reply

You can download the eval from the following link: https://www.redhat.com/rhel/details/eval/

If you need source RPMS you can download from: ftp://ftp.redhat.com/redhat/linux/en...r/en/os/SRPMS/
 
0 members found this post helpful.
Old 05-11-2011, 07:23 PM   #9
John VV
Guru
 
Registered: Aug 2005
Posts: 12,901

Rep: Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713
why not grab the kernel-devel or the source src.rpm from RHN

just like you would for any other program .

just do a yum search after you turn on the source repo.
 
0 members found this post helpful.
Old 05-16-2011, 02:27 PM   #10
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
Quote:
Originally Posted by Anisha Kaul View Post
It would also help if you could tell, "why" do you need to download the source code of the kernel?
Most need it to compile things, those that compile against the kernel. Some people like to view the source code or develop off of it. The question was pretty direct, I don't think it constitutes having the OP explain why they need it in this case.

My rule of thumb dealing with Red Hat:
RHEL = Stick to RHEL compiled kernels.
 
Old 05-16-2011, 09:55 PM   #11
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,622
Blog Entries: 29

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
Quote:
Originally Posted by trickykid View Post
Most need it to compile things, those that compile against the kernel. Some people like to view the source code or develop off of it. The question was pretty direct, I don't think it constitutes having the OP explain why they need it in this case.
I know all those things but it was also a probability that OP didn't know what he wanted. e.g. For compiling the kernel modules, you need the kernel headers. You may not need to download the source code from kernel.org and read it as well.
 
  


Reply

Tags
kernel, red hat, sourcecode


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
mount ntfs in redhat el5 version vinothaa Linux - Newbie 1 10-01-2010 11:45 PM
where i can download linux source code vinaytp Linux - Newbie 5 05-20-2009 03:23 AM
How to download source code of the linux kernel? saagar Linux - Newbie 3 05-11-2009 03:07 PM
Not able to locate source code for tg3 on 2.6.18-8.el5 tanniru Linux - Kernel 1 09-18-2008 03:18 AM
Where to download linux source code JSuresh Linux - General 7 02-21-2003 11:08 AM


All times are GMT -5. The time now is 04:42 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration