LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 02-18-2003, 09:36 AM   #1
jmourik
LQ Newbie
 
Registered: Jan 2003
Location: Houston, TX
Distribution: Redhat 8
Posts: 10

Rep: Reputation: 0
Creating /usr/src/linux-<xx> from kernel.<xx>.src.rpm


Hi,

I downloaded a RedHat kernel.<xx>.src.rpm and want to create the /usr/src/linux.<xx> from that rpm. So I tried rpm -i kernel.<xx>.src.rpm but this puts some stuff in /usr/src/redhat/SPECS and /usr/src/redhat/SOURCES. So from there I tried to do a rpmbuild -bs kernel.<xx>.spec. Somehow I can't get the source under the /usr/src tree. I see it in the rpmbuild output, but at the end it gets rmeoved I guess. Why? (I did end up with the new kernel in /boot)

How do I get a source tree under /user/src for this new kernel so I can do the compile myself? What am I missing???

Jan
 
Old 02-18-2003, 09:46 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you're not missing anything.... just move the source there. you don't want to be building the rpm or anything as you WANT the source code...

easiest way is to just link the directory to /usr/src:

ln -s /usr/src/redhat/SOURCES/linux-2.4.20 /usr/src

etc...
 
Old 02-19-2003, 03:24 PM   #3
jmourik
LQ Newbie
 
Registered: Jan 2003
Location: Houston, TX
Distribution: Redhat 8
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks...

I copied the sorce tree from the /usr/src/redhat/BUILD directory. That worked...

jan
 
  


Reply



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
kernel compile - no /usr/src/linux dir epoo Linux - General 2 02-18-2004 09:33 PM
Kernel Compiling not possible, Directory /usr/src/linux-2.4 isn't there rover Linux - Software 4 09-24-2003 08:05 AM
Building new kernel in /usr/src/linux is WRONG? jisse Linux - Software 3 09-14-2003 04:57 AM
kernel recompilation: /usr/src/linux orca Linux - Distributions 5 03-04-2003 08:53 AM
no kernel in usr/src/Linux elite Linux - General 11 10-28-2002 05:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:32 PM.

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