rpm question

Keith G. Robertson-Turner redhat-forums at genesis-x.nildram.co.uk
Wed Dec 31 02:52:39 UTC 2003


On Tue, 30 Dec 2003 20:12:15 -0600, Andrew Robinson wrote:

> Is there a way to compile and install a source rpm in one step?

The reason it is a two step process, is because step 2 (install) is
absolutely 100% dependant on the successful completion of step 1 (build).
It simply isn't possible to install binaries that have not been built yet.

You could write a script which first does rpmbuild --rebuild then rpm
-Uvh, but you would still need to test for successful build completion in
the script, and then you'd need to know (or work out/guess) the name of
the newly built packages. This isn't always obvious, for example the
src.rpm for mozilla is one file which when rebuilt produces 10 binary
packages (not including debug packages).

I guess the Gentoo Portage system maybe does a little of what you're
looking for, but that's a whole new game ...





More information about the users mailing list