$ dnf install mock
Mock configuration files are located at /etc/mock. It contains the configuration file for each supported platform.
The platform configuration is available in /etc/mock/<platform>.cfg.
To initialize the mock environment:
$ mock -r <platform> --init
$ 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/<platform>/result.
$ mock -r <platform> --clean