LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   src.rpm question (https://www.linuxquestions.org/questions/linux-newbie-8/src-rpm-question-66414/)

nulldev 06-18-2003 03:32 PM

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

mhearn 06-19-2003 03:47 AM

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/*

unSpawn 06-19-2003 07:28 AM

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".

mhearn 06-19-2003 11:38 AM

rpm --rebuild is AFAIK deprecated in favour of rpmbuild.

nulldev 06-19-2003 11:47 AM

Thank you very much, Mike. That did the trick beautifully.

--jag

mhearn 06-19-2003 12:10 PM

No problem! :)


All times are GMT -5. The time now is 12:19 AM.