LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (https://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   How to download source code for Redhat Linux Enterprize Version 2.6.18-128.el5 ? (https://www.linuxquestions.org/questions/linux-enterprise-47/how-to-download-source-code-for-redhat-linux-enterprize-version-2-6-18-128-el5-876978/)

vl chowdary 04-25-2011 10:33 AM

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

T3RM1NVT0R 04-25-2011 11:50 AM

@ 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?

knudfl 04-25-2011 12:14 PM

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.)

T3RM1NVT0R 04-25-2011 12:25 PM

@ 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...

hf2046 04-26-2011 01:09 AM

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

Aquarius_Girl 04-26-2011 03:45 AM

It would also help if you could tell, "why" do you need to download the source code of the kernel?

edprochak 05-11-2011 12:32 PM

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.

T3RM1NVT0R 05-11-2011 02:45 PM

@ 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/

John VV 05-11-2011 07:23 PM

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.

trickykid 05-16-2011 02:27 PM

Quote:

Originally Posted by Anisha Kaul (Post 4336522)
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.

Aquarius_Girl 05-16-2011 09:55 PM

Quote:

Originally Posted by trickykid (Post 4358126)
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.


All times are GMT -5. The time now is 09:23 AM.