Question Locked

how can i view linux kernel source code?

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I tried to see the linux kernel source code but i could not get to do do so.
Ideally it should be there in the /usr/src directory but its not there.
Can somebody suggest me where it should be and how can I get to know about it?
I am using fedora core-5 linux 2.6 kernel.
Ideally i think it should be given with the CD as per GPL terms and condition? right?
Being a starter i dont know how to play with the kernel? Please suggest, how can I get the linux kernel to start kernel module programming?

7 replies

by mintoo2cool

download the source code from

kernel.org

for any queries regrading the kernel goto

linuxfoundation.org and linuxbase.org

by w2ktechman

therefore you cannot see it the way that you want to. Best bet is to download the source, make changes (if needed/wanted) and then compile it for use.

by marv732

I think it's just

rpm -i kernel-source

with the cdrom in the drive of course...

Greg

by seanferd

If you have it on CD, there would be about 7 disks, 3 for installing, 3 for source, and one for documentation. If you got it on a DVD, you may have the source files on it.

Otherwise, just download it from Red Hat.

If you are interested only in the Linux kernel, see the other posts here.

Edit: To view the source, open it in a text editor.

by w2ktechman

I thought you had to download the source separately.

This discussion is closed to new replies.