PACKIT-BUILD-IN-MOCK(1)
π 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 somerelease_suffixis 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 theresultdiroption for theβΉmockβΊcommand. For details, go seemock(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
- fedora 43: packit 1.16.3-1.fc43 Β· MIT
- fedora 44: packit 1.16.3-1.fc44 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms