COPR-RPMBUILD(1)

πŸ“¦
version 1.10 Β· 4 versions
, in fedora 43, fedora 44

✨ 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.ini by 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 (like fedora-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 --chroot to 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-resultdir genuinely drops the resultdir and its content before continuing, and --rpm genuinely 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