LinuxQuestions.org

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

rpb 04-26-2005 04:59 AM

kernel sources...
 
hello...

i was looking for ways to get the configured versions of the kernel sources [ by efault these sources are not present in my system, i dont know why and how ] and stumbled upon the following command:

lets say i want to get the kernel sources for 2.6.9-1.667smp [ Fedora Core 3 release ]

if i use the command:-

$rpm -ivh kernel-2.6.9-1.667.src.rpm
[ SRPM file obtained from Fedora website ]

can anyone tell me whether the command above will build and install the whole kernel or it will just extract the kernel source files?

i will be doomed if the command above installs the kernel. its a server and with lots of warnings i managed to get the root password...so could not afford to do anything nasty....even accidentally !!

please help !!

thanks,
rpb

jschiwal 04-26-2005 05:38 AM

That is a source rpm package. Because of the redundancy in supplying a kernel-source package and a kernel-<version> source package, Fedora Core 3 only distributes the latter.

Here is a web page with instructions on how to procede:
http://digitaldespot.org/arcanusmaxi...o_install.html

rpb 04-26-2005 06:37 AM

thanks for the reply..

but actually my question was whether the command i refered would build the kernel or it would just extract the sources...and the url you pointed out does not contain that info..

thanks,
rpb

jschiwal 04-26-2005 04:48 PM

According to the article:
Quote:

On a default RPM configuration, the kernel tree will be located in /usr/src/redhat/BUILD/.
Please refer the the rpmbuild man-page. It states that the -bp option only performs the prep stage. This stage unpacks the source tarball, applies patches and changes the permissions of files where necessary.

foo_bar_foo 04-26-2005 09:32 PM

even if you accidentally give the command to rebuild the kernel from the kernel source rpm it will just make a binary rpm not install it -- so you are in total safety land


All times are GMT -5. The time now is 08:52 PM.