PACKIT-BUILD-IN-MOCK(1)

πŸ“¦
version 1.16.3 Β· 5 versions
, in fedora 43, fedora 44

πŸ’… packit-build-in-mock β€” the manual, but make it a group chat

okay bestie, so you know packit-build-in-mock? That's the one. It lives in the packit build in-mock Manual, and it is literally the whole vibe of "build my RPMs somewhere safe so my laptop stays unbothered." πŸŽ€


✨ NAME ✨

packit-build-in-mock β€” Build RPMs in mock using content of the upstream repository. That's it, that's the girl. 🫢


🌸 SYNOPSIS 🌸

packit build in-mock [OPTIONS] [PATH_OR_URL]

πŸ¦‹ DESCRIPTION πŸ¦‹

So the whole point: you're building RPMs in mock, using the content of your upstream repository. Clean, contained, no chaos on your actual machine. Iconic behaviour tbh. ✨

And the PATH_OR_URL argument? It's a local path or a URL pointing at your upstream git repository. If you just... don't say anything? It defaults to the current working directory. She's low maintenance like that. πŸ’–


πŸ‘‘ OPTIONS πŸ‘‘

  • --upstream-ref TEXT β€” Git ref of the last upstream commit in the current branch, and that's the point from which packit should generate patches. Heads up bestie: this option implies the repository is source-git. πŸ‘€
  • --release-suffix TEXT β€” Specifies release suffix. This one lets you override the default generated {current_time}.{sanitized_current_branch}{git_desc_suffix}. Yes, that's the whole format string, character for character, no cap. πŸ”₯
  • --default-release-suffix β€” Allows you to use the default, packit-generated release suffix when some release_suffix is specified in the configuration. Basically: "config says one thing, but I want the packit original, thank you." πŸ’…
  • -r, --root TEXT β€” Uses the specified chroot configuration. And the lil detail that matters: if it ends with .cfg, then it's treated as a full path to the mock configuration. πŸ‘‘
  • --default-resultdir β€” Use the default result directory from mock. Simple. Elegant. No notes. ✨
  • --resultdir DIRECTORY β€” Specifies the resultdir option for the β€Ήmockβ€Ί command. For details, go see mock(1). Iykyk. πŸ“–
  • -p, --package TEXT β€” Package to build, in case more than one is available β€” like in a monorepo configuration, you know the struggle 😭. Use it multiple times to select multiple packages. Defaults to all the packages listed inside the config. Fr fr, all of them. πŸ“
⚠️ Also just a lil reminder: --upstream-ref implies the repository is source-git. Don't forget, bestie, it's right there in the option. πŸ’œ

and that's the whole page, you ate that 🧚✨

This was version 1.16.3, dated 2026-09-04. Mwah, go build something cute. πŸ’–πŸŒˆπŸ¦‹

πŸ“¦ where this page comes from