SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG
DONATE




YUM REPOSITORY

 
 

MAN page from RedHat Other mock-0.6.4-1.el4.1.x86_64.rpm

mock

Section: (1)
Updated: 0.6
Index 

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 anythingterribly fancy other than populate a chroot with the contentsspecified by a configuration file, then build any input SRPM(s) inthat chroot.

The content of a chroot is specified by the configurationspecified with the -r option. A default configuration file isspecified in /etc/mock/default.cfg, which is usually a symlink to oneof the installed configurations. 

OPTIONS

-r CHROOT
Uses specified chroot configuration as defined in/etc/mock/<chroot>.cfg If none specified, uses the chroot linkedto 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:

http://bugzilla.redhat.com/bugzilla.

Select the query option, using product Fedora Hosted Projectsand component mock and press the Start Searchbutton. If there is a bug similar to the one you are seeing, add yourinformation to the comments. If not, go to the new bug page using thesame product and component and fill in the form. 

AUTHORS

Seth Vidal <skvidalAATTlinux.duke.edu>

and a cast of...tens 

SEE ALSO

yum(8) rpmbuild(8)http://fedoraproject.org/wiki/Projects/Mock


 

Index

NAME
SYNTAX
DESCRIPTION
OPTIONS
COMMANDS
FILES
EXAMPLES
BUGS
AUTHORS
SEE ALSO

This document was created byman2html,using the manual pages.