| Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
04-25-2011, 10:33 AM
|
#1
|
|
LQ Newbie
Registered: Mar 2011
Posts: 5
Rep:
|
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
|
|
|
|
04-25-2011, 11:50 AM
|
#2
|
|
Senior Member
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, Ubuntu, SLES, CentOS
Posts: 1,674
|
@ 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.
|
|
|
|
04-25-2011, 12:14 PM
|
#3
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,615
|
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.
|
04-25-2011, 12:25 PM
|
#4
|
|
Senior Member
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, Ubuntu, SLES, CentOS
Posts: 1,674
|
@ 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.
|
|
|
|
04-26-2011, 01:09 AM
|
#5
|
|
Member
Registered: Mar 2011
Distribution: Slack64
Posts: 107
Rep:
|
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
|
|
|
|
04-26-2011, 03:45 AM
|
#6
|
|
Senior Member
Registered: Dec 2008
Location: Gurgaon, India
Distribution: OpenSUSE 11.4
Posts: 4,581
|
It would also help if you could tell, "why" do you need to download the source code of the kernel?
|
|
|
|
05-11-2011, 12:32 PM
|
#7
|
|
LQ Newbie
Registered: Apr 2011
Location: Ohio
Distribution: Oracle/RedHat
Posts: 3
Rep:
|
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.
|
|
|
|
05-11-2011, 07:23 PM
|
#9
|
|
Guru
Registered: Aug 2005
Posts: 9,530
|
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.
|
05-16-2011, 02:27 PM
|
#10
|
|
Guru
Registered: Jan 2001
Posts: 24,128
Rep: 
|
Quote:
Originally Posted by Anisha Kaul
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.
|
|
|
|
05-16-2011, 09:55 PM
|
#11
|
|
Senior Member
Registered: Dec 2008
Location: Gurgaon, India
Distribution: OpenSUSE 11.4
Posts: 4,581
|
Quote:
Originally Posted by trickykid
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:12 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|