mock-hermetic-repo - Man Page

Synopsis

mock-hermetic-repo [-h] --lockfile LOCKFILE --output-repo OUTPUT_REPO

Description

Prepare a repository for a `mock --hermetic-build` build. Given a Mock buildroot "lockfile"

 a) create an output repo directory,
 b) download and place all the necessary RPM files there,
 c) create a local RPM repository there (run createrepo), and
 d) dump there also the previously used bootstrap image as a tarball.

Lockfile is a buildroot_lock.json file from Mock's result directory; it is a JSON file generated by the --calculate-build-dependencies option/buildroot_lock plugin.

Options

--lockfile LOCKFILE

Select buildroot_lock.json filename on your system, typically located in the Mock's result directory upon the --calculate-build-dependencies mode execution.

--output-repo OUTPUT_REPO

Download RPMs into this directory, and then run /bin/createrepo_c utility there to populate the RPM repo metadata.

Referenced By

mock(1).

2024-09-30 Generated Python Manual