rpmbuild (8) - Linux Manuals
rpmbuild: Build RPM Package(s)
NAME
rpmbuild - Build RPM Package(s)SYNOPSIS
BUILDING PACKAGES:
rpmbuild {-ba|-bb|-bp|-bc|-bi|-bl|-bs} [rpmbuild-options] SPECFILE ...
rpmbuild {-ta|-tb|-tp|-tc|-ti|-tl|-ts} [rpmbuild-options] TARBALL ...
rpmbuild {--rebuild|--recompile} SOURCEPKG ...
MISCELLANEOUS:
rpmbuild --showrc
rpmbuild-options
rpmbuild is used to build both binary and source software packages.
A package consists of an archive of files and
meta-data used to install and erase the archive files. The meta-data
includes helper scripts, file attributes, and descriptive information
about the package.
Packages come in two varieties: binary packages,
used to encapsulate software to be installed, and source packages,
containing the source code and recipe necessary to produce binary
packages.
One of the following basic modes must be selected:
Build Package,
Build Package from Tarball,
Recompile Package,
Show Configuration.
These options can be used in all the different modes.
The general form of an rpm build command is
rpmbuild -bSTAGE|-tSTAGE [ rpmbuild-options
] FILE ...
The argument used is -b if a spec file is being
used to build the package and -t if rpmbuild
should look inside of a (possibly compressed) tar file for
the spec file to use. After the first argument, the next
character (STAGE) specifies the stages
of building and packaging to be done and is one of:
The following options may also be used:
There are two other ways to invoke building with rpm:
rpmbuild --rebuild|--recompile SOURCEPKG ...
When invoked this way, rpmbuild 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 package are removed.
The command
rpmbuild --showrc
shows the values rpmbuild will use for all of the
options are currently set in
rpmrc and
macros
configuration file(s).
rpmbuild --help - as rpm supports customizing the options via popt
aliases it's impossible to guarantee that what's described in the manual
matches what's available.
DESCRIPTION
GENERAL OPTIONS
BUILD OPTIONS
REBUILD AND RECOMPILE OPTIONS
SHOWRC
FILES
rpmrc Configuration
/usr/lib/rpm/rpmrc
/usr/lib/rpm/redhat/rpmrc
/etc/rpmrc
~/.rpmrc
Macro Configuration
/usr/lib/rpm/macros
/usr/lib/rpm/redhat/macros
/etc/rpm/macros
~/.rpmmacros
Temporary
AUTHORS
Marc Ewing <marc [at] redhat.com>
Jeff Johnson <jbj [at] redhat.com>
Erik Troan <ewt [at] redhat.com>
SEE ALSO
gendiff(1),
popt(3),
rpm(8),
rpm2cpio(8),
rpmkeys(8)
rpmspec(8),
rpmsign(8),