Installation#
$ dnf install mock
Configuration#
Mock configuration files are located at /etc/mock. It contains the configuration file for each supported platform.
Initialization#
The platform configuration is available in /etc/mock/.cfg.
To initialize the mock environment:
$ mock -r <platform> --init
For example:
$ mock -r fedora-rawhide-x86_64 --init
Building a Package#
To build a package:
$ mock -r <platform> --rebuild <source RPM>
The result will be stored in /var/lib/mock//result.
Clean Up#
$ mock -r <platform> --clean