COPR-RPMBUILD(1)
β¨ copr-rpmbuild(1) β¨
okay bestie, welcome to the copr-rpmbuild manual page π this is section 1 of the manuals, so get comfy, grab a strawberry π, and let's talk about running COPR builds.
π NAME π
copr-rpmbuild β run COPR builds. that's it, that's the whole vibe. no cap.
π¦ SYNOPSIS π¦
copr-rpmbuild [-c|--config CONFIG_PATH] [-d|--detached]
[--drop-resultdir] [--rpm|--srpm] [-r|--chroot CHROOT_NAME]
[-v|--verbose] [-h|--help] [--build-id COPR_BUILD_ID]
look at her. she's got options. she's literally serving. π
πΈ DESCRIPTION πΈ
so here's the tea: this thing runs COPR builds of whatever build ID you hand it, and it drops the results into /var/lib/copr-rpmbuild/results/. that's the home base, the main character location, the spot. πβ¨
by default the script generates target RPMs. but if you're feeling a little different today, you can also make it generate just an SRPM β you do that with the --srpm switch. easy peasy, obsessed with the flexibility honestly.
π OPTIONS π
--build-id COPR_BUILD_IDβ run the build of the ID you specify. this is your build, bestie, claim her. π«Ά--drop-resultdirβ nukes the resultdir and everything inside it right at the beginning, before anything else happens. bye bye old files ππ (yes, it really drops the content, so know that going in).-c,--config CONFIG_PATHβ path to an alternative config file. if you don't say anything, it uses/etc/copr-rpmbuild/main.iniby default. the default is fine, but options are cute. π-d,--detachedβ run the build in the background and output the process PID. the log goes into/var/lib/copr-rpmbuild/main.log. set it and forget it, she's independent now. β¨-r,--chroot CHROOT_NAMEβ the name of the chroot you're building for. this follows mock's convention for naming chroots (likefedora-27-x86_64, iykyk). for the full list, go look in/etc/mock. π--srpmβ build an SRPM instead of building an RPM. different girl, same energy.--rpmβ build an RPM. this is the default action, so if you do nothing, this is what you get. β οΈ it requires--chrootto be specified. no chroot, no RPM, periodt.-v,--verboseβ print debugging information. loud and proud, we love the details. π₯-h,--helpβ display help. when in doubt, ask for help, that's growth. π±
π EXAMPLES π
example one:
copr-rpmbuild -v --build-id 551347 --chroot epel-7-x86_64
runs the COPR build of ID 551347 inside the epel-7-x86_64 mock chroot, and prints verbose information while it does. the result will be an RPM. π
example two:
copr-rpmbuild -v --build-id 551347 --srpm
runs the exact same COPR build as the previous example, and again with verbose information β but this time, an SRPM gets built instead. same girl, different output. πβ¨
π AUTHORS π
clime<clime@redhat.com>- Jakub Kadlcik <jkadlcik@redhat.com>
these two made this whole thing happen. legends, honestly. π
just a lil reminder bestie:--drop-resultdirgenuinely drops the resultdir and its content before continuing, and--rpmgenuinely needs--chroot. not being dramatic, that's just the rules. π
and that's the page! this was copr-rpmbuild(1) from 09/22/2026 β thanks for reading all the way to the end, you're literally the best π¦π mwah, go build something iconic. β¨π
π¦ where this page comes from
- fedora 43: copr-rpmbuild 1.10-1.fc43 Β· GPL-2.0-or-later
- fedora 44: copr-rpmbuild 1.10-1.fc44 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms