Visit Jeremy's Blog.
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 07-30-2004, 10:26 AM   #1
LQ Newbie
Registered: May 2004
Posts: 4

Rep: Reputation: 0
installing fedora kernel sources


I know that this is probably the easiest thing in the world, but I need to know how to install the kernel sources. I downloaded the kernel-2.6.6-1.435.2.3.src.rpm file and did a rpm -ivh kernel... I thought it would put it in a nice /usr/src/kernel- directory. Boy, am I wrong.

So, if anybody could help me figure out how to do this, that would be great! I tried to search around, but couldn't find much. I also need to do this so I can install the ati drivers and kismet.

Thanks in advance...
Old 07-30-2004, 10:50 AM   #2
LQ Newbie
Registered: May 2004
Posts: 4

Original Poster
Rep: Reputation: 0

Darn...i just found out how to do it... easy enough...

yum install kernel-sourcecode

Now, I have the /usr/src/kernel version directory. Is it safe to remove the old kernel source directory?

Old 07-30-2004, 01:41 PM   #3
Registered: Aug 2003
Location: Akron, OH
Distribution: Slackware 14.2-stable, Ubuntu 16.04 LTS
Posts: 401

Rep: Reputation: 30
Since compiled kernel images are kept in /boot, once you've compiled a kernel, you can delete the source directory. HOWEVER, a lot of programs will use the kernel source header files when compiling (such as the nVIDIA drivers), you have to be careful not to delete the source for any kernels you still want to be able to boot from or need the header files to build other programs. As it sounds like you are simply upgrading the latest and greatest kernel, once you are satisfied that everything is working properly with the new kernel, I would think you'd be okay to get rid of the previous source directory.

Last edited by Tino27; 07-30-2004 at 01:42 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
Ndiswrapper - Cant find kernel sources while installing (Kernel 2.6.11) krayhze Linux - Wireless Networking 6 05-23-2006 06:30 AM
installing kernel sources bhodi Slackware 1 04-12-2005 01:07 PM
Can't get kernel sources from apt/synaptic (Fedora 3) versaulis Linux - Software 0 01-15-2005 02:26 PM
Kernel sources in Fedora Core 2 mbourne Fedora 8 10-04-2004 09:35 AM
Installing Kernel Sources... Solean Slackware 4 04-26-2003 03:16 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:08 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
Open Source Consulting | Domain Registration