LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 06-18-2003, 03:32 PM   #1
nulldev
LQ Newbie
 
Registered: Jun 2003
Location: San Francisco, CA
Distribution: Redhat 9
Posts: 2

Rep: Reputation: 0
Question src.rpm question


I am embarassed to ask this question but I've no other alternative... The answer is apparently so obvious that the documentation and Ultra RPM glaze right over it.

When trying to install a .src.rpm I get no complaints but the package doesn't show as installed according to rpm -q.

#rpm -ihvv ethereal-0.9.8-6.src.rpm

Does installing the .src simply set up the binaries of the rpm, so I need to run a "make?"

Thanks.

--nd
 
Old 06-19-2003, 03:47 AM   #2
mhearn
LQ Guru
 
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565

Rep: Reputation: 57
The answer isn't obvious, far from it. Unfortunately RPM is just arcane.

Try this:

rpmbuild -ba foo.src.rpm

Installing it will place the specs and sources in /usr/src/redhat/*
 
Old 06-19-2003, 07:28 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Also see "rpm --rebuild <package>.src.rpm".
"When invoked this way, rpm installs the named source pack_
age, and does a prep, compile and install. In addition,
--rebuild builds a new binary package. When the build has
completed, the build directory is removed (as in --clean)
and the the sources and spec file for the package are
removed."


Nothing "arcane" in that, just learning to deal with your system and read ing "man rpm".
 
Old 06-19-2003, 11:38 AM   #4
mhearn
LQ Guru
 
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565

Rep: Reputation: 57
rpm --rebuild is AFAIK deprecated in favour of rpmbuild.
 
Old 06-19-2003, 11:47 AM   #5
nulldev
LQ Newbie
 
Registered: Jun 2003
Location: San Francisco, CA
Distribution: Redhat 9
Posts: 2

Original Poster
Rep: Reputation: 0
Thank you very much, Mike. That did the trick beautifully.

--jag
 
Old 06-19-2003, 12:10 PM   #6
mhearn
LQ Guru
 
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565

Rep: Reputation: 57
No problem!
 
  


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
is it ok to use i386 rpm for i686 & how about src rpm amolgupta Linux - Software 4 05-01-2013 08:45 AM
src.rpm question CarlosSunden Linux - Newbie 2 05-28-2004 12:43 PM
src.rpm and i386.rpm ? futurist Linux - Software 9 07-14-2003 05:31 AM
.src.rpm, .i386.rpm and .i686.rpm hhegab Linux - Software 2 06-19-2003 07:19 AM
Creating /usr/src/linux-<xx> from kernel.<xx>.src.rpm jmourik Linux - Newbie 2 02-19-2003 03:24 PM

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

All times are GMT -5. The time now is 04:16 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