Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-15-2004, 12:54 PM   #1
Registered: May 2004
Distribution: red hat 9
Posts: 56

Rep: Reputation: 15
what is this kernel source package?

help me out please ...
i would like to know what
"kernel source package" is and is iot installed by default in n the
personal desktop installation of red hat 9...
i need to install a driver which requires this package..
if it is installed wheredo i find it...(nuthing in the /usr/local/src
directory as thehelp of the driver suggested)
and if i dont have it can i install it from the red hat rpms
thank you,
Old 09-15-2004, 01:13 PM   #2
Registered: Sep 2003
Location: Suwon, Korea
Distribution: Slackware 14
Posts: 288

Rep: Reputation: 32
no problem, you can get it from this address

this is the sources for the kernel that came with RH9, so if you are using a different one, you will need to find its sources. If you are not sure if you are running a different kernel, you probably arent, but just to make sure, run the command

uname -r

(you may need to be root to run it), and if the output is soemthing like


youre good to go. If it says pcmcia anywhere though, download this package instead.

when you get the package you need, simply go to where you downloaded it and run (you may need to be root to run this)

rpm -ivh kernel-2.4.20-8.src.rpm

change the package name if you have the pcmcia package

it is sometimes included, if you choose so, but it may not be. The usual place it is installed is /usr/src
Old 09-15-2004, 01:25 PM   #3
LQ Newbie
Registered: Mar 2004
Location: London
Distribution: Red Hat 9
Posts: 15

Rep: Reputation: 0
To check if you have the kernel source for your Red Hat installation you can:
1. (GUI & safest way):
run Add/Remove Applications from the System Settings menu in the Red Hat main menu. After you're prompted for your root password, it will take a little time checking package dependencies - finding out what you have installed. Scroll down to the Kernel package item (has a small picture of Linus Torvalds next to it) - if it's checked, you have the kernel source installed! If not, check it and click the update button - this will install the kernel from the Red Hat cds, if you have them (if not tell me).

or 2. (simple console way):
open up a console and do the following:
cd /usr/src
ls -d linux*
This will tell you which version of the kernel source you have. If you get no results, you have no kernel source. If you get result(s), the numbers after "linux-" should match the output of the following command:

uname -r
Hope this helps!
Old 09-22-2004, 01:37 AM   #4
Registered: May 2004
Distribution: red hat 9
Posts: 56

Original Poster
Rep: Reputation: 15
thanks guys for all the help...
i installed the package from the installation cd's itself.
some lifesavers you are,


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
new kernel compiled successfully, but the kernel-source package is the same old? luqman Red Hat 2 03-03-2005 09:41 AM
kernel-source package houston1981 DamnSmallLinux 0 12-01-2004 05:50 AM
FC3 - how to get and install kernel-source package? philou Fedora 2 11-14-2004 09:01 AM
Install kernel source package yzrider210 Linux - Newbie 2 11-22-2003 03:39 PM
problem installing kernel source package ludwig W Linux - Newbie 1 03-23-2003 09:18 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:58 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration