
Yum: Yellowdog Updater Modified | 585
Package
Management
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
--nobuild
Go through the motions, but don’t execute any build stages. Used for testing
spec files.
--rmsource
Remove the source files when the build is done. Can be used as a standalone
option with rpm to clean up files separately from creating the packages.
--rmspec
Remove the spec file when the build is done. Like --rmsource, --rmspec can
be used as a standalone option with rpmbuild.
--short-circuit
Can be used with -bc and -bi to skip previous stages that already ran success-
fully. With --short-circuit, -bc starts directly at the build stage and -bi starts
with the install stage.
--sign
Add a GPG signature to the package for verifying its integrity and origin.
--target platform
When building the package, set the macros %_target, %_target_arch, and
%_target_os to the value indicated by platform.
Two other options can be used standalone with rpmbuild to recompile or rebuild
a package:
--rebuild source-pkgfile...
Like --recompile, but also build a new binary package. Remove the build
directory, the source files, and the spec file once the build is complete.
--recompile source-pkgfile...
Install the named source package, and prep, compile, and install the package.
Finally, the --showrc option is used to show the current rpmbuild configuration: ...