NAME
mock - build SRPMs in a chroot
SYNTAX
mock [options] [rebuild] SRPM [SRPM...]
mock [options] chroot <cmd>
mock [options] {init|clean|shell}
DESCRIPTION
Mock is a simple chroot/rpm building program. It doesn't do
anything terribly fancy other than populate a chroot with the
contents specified by a configuration file, then build any input
SRPM(s) in that chroot.
The content of a chroot is specified by the configuration
specified with the -r option. A default configuration file
is specified in /etc/mock/default.cfg, which is usually a symlink
to one of the installed configurations.
OPTIONS
- -r CHROOT
- Uses specified chroot configuration as defined in
/etc/mock/<chroot>.cfg If none specified, uses the
chroot linked to by /etc/mock/default.cfg
- --no-clean
- Do not clean chroot before building package.
- --arch=ARCH
- Specify target build arch.
- --debug
- Output copious debugging information.
- --resultdir=RESULTDIR
- Change directory where resulting files (RPMs and build logs)
are written
- --statedir=STATEDIR
- Change directory where state information is written
- --uniqueext=text
- Arbitrary, unique extension to append to buildroot directory
name
- --configdir=CONFIGDIR
- Change directory where config files are found
- --quiet
- Suppress most output
- --autocache
- Turn on build-root caching
- --rebuildcach
- Force rebuild of build-root cache
- --help
- Show usage information and exit.
- --version
- Show version number and exit.
COMMANDS
- init - initialize a chroot (install packages, setup
devices, etc.)
- chroot - run the specified command within the chroot
(which must already be initialized)
- clean - purge the chroot tree
- shell - start an interactive shell in the specified
chroot
- rebuild - If no command is specified, rebuild is
assumed. Rebuilds the specified SRPM(s)
FILES
/etc/mock/ - default configuration directory
/var/lib/mock - directory where chroots are created
EXAMPLES
To rebuild test.src.rpm under the default chroot:
- mock /path/to/test.src.rpm
To specify a different chroot (which must be defined in
/etc/mock):
- mock -r fedora-4-i386-core
/path/to/test.src.rpm
BUGS
To report bugs in mock, go to:
-
Select the query option, using product Fedora Hosted
Projects and component mock and press the Start
Search button. If there is a bug similar to the one you are
seeing, add your information to the comments. If not, go to the new
bug page using the same product and component and fill in the form.
AUTHORS
Seth Vidal <skvidal@linux.duke.edu>
and a cast of...tens
SEE ALSO
yum(8)
rpmbuild(8)
http://fedoraproject.org/wiki/Projects/Mock