From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by listman.redhat.com (Postfix) with ESMTP id 25A6C3EABE for ; Sun, 1 Sep 2002 21:05:15 -0400 (EDT) Received: (from mail@localhost) by int-mx1.corp.redhat.com (8.11.6/8.11.6) id g8215BP16109 for axp-list@listman.redhat.com; Sun, 1 Sep 2002 21:05:11 -0400 Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with SMTP id g8215BY16105 for ; Sun, 1 Sep 2002 21:05:11 -0400 Received: from ellpspace.math.ualberta.ca (ellpspace.math.ualberta.ca [129.128.207.67]) by mx1.redhat.com (8.11.6/8.11.6) with SMTP id g820ncl28375 for ; Sun, 1 Sep 2002 20:49:38 -0400 Received: (from michal@localhost) by ellpspace.math.ualberta.ca (8.11.6/8.11.6) id g82151N06983 for axp-list@redhat.com; Sun, 1 Sep 2002 19:05:01 -0600 Date: Sun, 1 Sep 2002 19:05:01 -0600 From: Michal Jaegermann To: axp-list@redhat.com Subject: Re: difference between rpm -bb & rpm -bc Message-ID: <20020901190501.A6969@ellpspace.math.ualberta.ca> References: <000601c25217$f91762a0$6a700044@outpost23> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <000601c25217$f91762a0$6a700044@outpost23>; from tedgoodridgejr@acm.org on Sun, Sep 01, 2002 at 07:30:43PM -0500 X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: axp-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: On Sun, Sep 01, 2002 at 07:30:43PM -0500, Ted Goodridge, Jr wrote: > When I'm building a binary package from a source rpm, which command do I > use When you are just rebuilding without any modifications to spec files then you are using rpmbuild --rebuild .src.rpm and this will worry for you about all proper steps. > (and what is the difference) between > > rpm -bb > rpm -bc One similarity is that although both still work then in the future they will stop and you should use 'rpmbuild' instead if your rpm version is new enough to have that utility. You may need to install 'rpm-build' before _any_ of the above will work. There was no such split in the past. As for the differences then let us see: $ rpmbuild --help ......... -bc build through %build (%prep, then compile) from ......... -bb build binary package only from ......... In other words '-bc' runs only through a compilation phase and does not really build any packages. Before the last operation you still have to "%install" which can be "--short-circuit"ed while the whole packaging operation cannot. If you modified spec file, which makes impossible to use '--rebuild', then you should really use '-ba' because you want your customized source package as well. Michal