Product SiteDocumentation Site

The rpmbuild Command

The rpmbuild command builds RPMs. Most of the options are duplicated. The options that begin with –b build from a spec file, and the options that begin with –t build from a compressed tar archive, commonly called a tarball.

Building from a spec file

Table A-8 lists the rpmbuild options for building RPMs from a spec file.
Table A-8 Options for building RPMs from a spec file
Option
Usage
-ba
Build all, both a binary and source RPM
-bb
Build a binary RPM
-bc
Build (compile) the program but do not make the full RPM, by executing the build commands through the %build section and stopping
-bp
Prepare for building a binary RPM, by executing the build commands through the %prep section and stopping
-bi
Execute the build commands through the %install section and stop
-bl
Check the listing of files for the RPM
-bs
Build a source RPM only
Each of these options requires the name of a spec file at the end of the command line.