LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 04-26-2005, 04:59 AM   #1
rpb
Member
 
Registered: Mar 2005
Location: the thrid rock from the sun
Distribution: Red Hat 8, FC 3
Posts: 31

Rep: Reputation: 15
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
 
Old 04-26-2005, 05:38 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
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
 
Old 04-26-2005, 06:37 AM   #3
rpb
Member
 
Registered: Mar 2005
Location: the thrid rock from the sun
Distribution: Red Hat 8, FC 3
Posts: 31

Original Poster
Rep: Reputation: 15
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
 
Old 04-26-2005, 04:48 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
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.
 
Old 04-26-2005, 09:32 PM   #5
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 52
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
 
  


Reply


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
Kernel Sources PC Junior Linux - Newbie 12 06-28-2005 05:07 PM
Kernel Sources unwrittenlaw Linux - General 1 12-06-2004 04:00 AM
kernel sources [ITA]freeware Linux - Software 2 09-17-2004 02:24 PM
CAVEAT: /boot/kernel.h & how not to clobber your kernel sources (Conectiva, Red Hat) JCCyC LinuxQuestions.org Member Success Stories 0 08-07-2003 07:49 AM


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

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