MOCK-HERMETIC-REPO(1)

πŸ“¦
version 6.9 Β· 4 versions
, in epel 10, epel 9, fedora 44

πŸ’– MOCK-HERMETIC-REPO(1) πŸ’–

okay bestie, gather round, because this little cutie (mock-hermetic-repo, that's her name, she's a manual page girly) is about to make your hermetic builds look effortless ✨


✨ NAME ✨

mock-hermetic-repo β€” that's the whole name, no notes, she's iconic like that πŸ‘‘


πŸŽ€ SYNOPSIS πŸŽ€

mock-hermetic-repo [-h] --lockfile LOCKFILE --output-repo OUTPUT_REPO
[--client-cert-for HOST CERT [KEY] [HOST CERT [KEY] ...]]

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the vibe: this tool gets a repository all prepped and pretty for a mock --hermetic-build build 🌸

you hand her a Mock buildroot "lockfile", and she:

  1. creates an output repo directory πŸ“
  2. downloads and places all the necessary RPM files in there πŸ“¦
  3. creates a local RPM repository right there (she runs createrepo) πŸ”§
  4. dumps the previously used bootstrap image in there too, as a tarball πŸ—œοΈ

now, about that lockfile: it's a buildroot_lock.json file, straight out of Mock's result directory πŸ’… it's a JSON file, and it gets generated by the --calculate-build-dependencies option slash buildroot_lock plugin β€” iykyk 🫢


πŸ’… OPTIONS πŸ’…

  • --lockfile LOCKFILE β€” pick which buildroot_lock.json filename lives on your system. typically she's chilling in Mock's result directory, and she shows up there once you've run the --calculate-build-dependencies mode πŸ—‚οΈ
  • --output-repo OUTPUT_REPO β€” all the RPMs get downloaded into this directory, and then /bin/createrepo_c gets run right there to populate the RPM repo metadata ⭐
  • --client-cert-for HOST CERT [KEY] [HOST CERT [KEY] ...] β€” registers a client certificate (plus an optional key) for one specific host. repeatable, so stack as many as you want πŸ’– usage:
--client-cert-for HOST CERT [KEY]
🫢 quick heads up, bestie: -h is in the synopsis up there, and that's all this page says about it β€” so no spoilers from me, no cap πŸ™ˆ

and that's the whole page!! it's giving "short but essential", it's giving "read me before you build" 🧚

this one was brought to you by mock-hermetic-repo, dated 2026-10-01 πŸ’œ take care of her, she takes care of your repo πŸŽ€βœ¨πŸŒˆ

πŸ“¦ where this page comes from