LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   installing fedora kernel sources (https://www.linuxquestions.org/questions/linux-newbie-8/installing-fedora-kernel-sources-211477/)

wiz561 07-30-2004 10:26 AM

installing fedora kernel sources
 
Hi!

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-2.6.6.1..blahblah 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...

wiz561 07-30-2004 10:50 AM

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


Thanks!

Tino27 07-30-2004 01:41 PM

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.


All times are GMT -5. The time now is 01:40 PM.