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 10-22-2007, 02:51 PM   #1
Registered: Aug 2005
Posts: 75

Rep: Reputation: 15
how to install the source code of the kernel

I got the 2.6.23 kernel from .
I am using F7. I know howto rebuild the kernel .

I need to install ndiswrapper for which I also need to install the kernel source code .
How do I install the Kernel source code?

Old 10-22-2007, 03:54 PM   #2
Senior Member
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
First, one does not need the kernel source code to install ndiswrapper, you do need to have the kernel-devel and kernel-headers rpm packages however. Install the freshrpms-release package;

rpm -ivh

Or download it then install;

rpm -ivh freshrpms-release-1.1-1.fc.noarch.rpm

When done as root type: yum install dkms-ndiswrapper

If you have a working Internet connection then the command above should install the additional packages required. if not as i already said you need to have install the kernel-devel and kernel-headers rpm packages for your running kernel along with the dkms rpm package.

Second, the kernel source you downloaded from will not work as you intend. The fine folks at Fedora typically make changes (enhancements, tweaks and other 'improvements'). If you want the full kernel source for Fedora then you need to get the source rpm file from them;

You can build a working kernel using the source you downloaded from the instructions are here;

The file lkn_pdf.tar.bz2 is what you want to get and review, the short instructions are after downloading and expanding the kernel source are;

make mrproper
make oldconfig
make menuconfig
make modules_install
make install

The 'make oldconfig' and 'make menuconfig' steps configure and verify that the kernel will build for your hardware correctly. Do take the time while using 'make menuconfig' to insure all your hardware is configured and to make any adjustments required.

Last edited by Lenard; 10-22-2007 at 03:56 PM.


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
help getting kernel source code extendedping Linux - Kernel 24 10-06-2006 06:59 AM
centos4, can not install kernel source code lnthai2002 Linux - Enterprise 2 12-20-2005 02:54 PM
Q: install kernel source code Tux136 Linux - Newbie 9 08-30-2005 09:59 AM
How do I install the Linux kernel source code?? thearchitect Linux - Newbie 3 08-13-2005 12:07 AM
mandrake10 install kernel source code /radeon 9800xtpro drivers UberNo0ber Mandriva 0 06-07-2004 05:18 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:34 AM.

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
Open Source Consulting | Domain Registration