On Thu, 22 Jan 2004 15:47:27 +1300
Col <[EMAIL PROTECTED]> wrote:
> Nick Rout wrote:
>
> >On Thu, 22 Jan 2004 12:57:17 +1300
> >Col <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> >>Nick Rout wrote:
> >>
> >>
> >>
> >>>I want to build a binary rpm from a source rpm, without installing the
> >>>binaries on the system, ie I don't want to risk mucking up my existing
> >>>installation of the earlier version of same package.
> >>>
> >>>
> >>>all of the rpm -b options seem to want to build, install, then package.
> >>>I want to just build then package,
> >>>
> >>>anyone know how to do this?
> >>>
> >>>my reference for all this is here:
> >>>
> >>>http://www.rpm.org/max-rpm/ch-rpm-b-command.html
> >>>
> >>>
> >>>
> >
> >yeah but that installs it as well (I think)
> >
> >
>
> $rpm -qa | grep testfilefrompreviouspost
> shows that it's not installed.
from man rpm:
rpm {--rebuild|--recompile} SOURCEPKG ...
When invoked this way, rpm installs the named source package, 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 pack-
age are removed.
>
> >
> >
> >>>
> >>>
> >>>
> >>>
> >>Try something like
> >>$rpmbuild --rebuild --target=athlon file.src.rpm
> >>and find the result in /usr/src/redhat/RPMS/
> >>I had great plans to optimise redhat once :)
> >>
> >>
> >>
> >
> >get gentoo instead
> >
> >
> >
> >
> I did :)
>
>
> Col
>
--
Nick Rout <[EMAIL PROTECTED]>