compose-write-repo-file(1)
π compose-write-repo-file β a whole manual, but make it cute π
okay bestie, so this is a page from the General Commands Manual, and it's all about compose-write-repo-file. no cap, it's lowkey one of those little utilities that just does the thing, and we're gonna go through every single crumb of it together. grab a snack π
β¨ NAME β¨
compose-write-repo-file β write a .repo file pointing to a compose π
that's it. that's the name. iconic.
πΈ SYNOPSIS πΈ
compose-write-repo-file [OPTIONS...] COMPOSE_PATH
yeah, that's the whole vibe: some options, then a COMPOSE_PATH, and you're off. (yes there are two spaces there, we do not question the formatting gods π«Ά)
π¦ DESCRIPTION π¦
okay so here's the tea: compose-write-repo-file loads metadata from a compose and then creates a YUM/DNF configuration file with entries for the repositories in that compose.
literally that's the whole job. it looks at your compose, goes "mm yes repos", and hands you back a config file. main character energy tbh. π
π OPTIONS π
every flag, every crumb, no skipping, periodt:
-h,--helpβ print help and exit. the classic. the legend. π«Ά--arch=ARCHβ use URLs with this hardcoded architecture. by default,$basearchis used instead. (iykyk, sometimes you just wanna be specific β¨)--include-debuginfoβ create entries for debuginfo repositories. more repos, more love π--include-sourceβ create entries for source repositories. π¦--variant=VARIANTβ create entries only for the listed variants. you can use this one multiple times, go off. any variants that don't include repositories are skipped automatically, so no awkward empty entries π--disabled=VARIANTβ make the entries for this variant disabled. by default, all repositories are created as enabled. so this is the "actually, sit this one out" button π--output=FILE_PATHβ write the output to this file instead of tostdout. very demure, very file-based π--translate=PATH_PREFIX,URL_PREFIXβ by default, local filepaths are created. with this option it's possible to generate URLs. the path prefix gets stripped from the path, and replaced with the URL prefix. glow-up for your paths β¨--name-pattern=PATTERNβ customize the name for the repositories. these fragments are available:release_id,release_short,release_name,release_version,release_type,release_major_versionbase_product_short,base_product_name,base_product_version,base_product_type(these are only available for layered product composes)compose_id,compose_type,compose_date,compose_respin,labelvariant(should always be used unless a single variant is processed)arch(only makes sense if--archis used)
the default is:
{release_short}-{release_version}-{variant}
so yeah, mix and match those fragments and name your repos whatever your heart desires π
--gpgcheckβ enablegpgcheck = 1. default isgpgcheck = 0. π--gpgkey=GPGKEYβ thegpgkeyvalue (public key URL). multiple key URLs should be comma-separated. use--gpgcheckwith this option. π (they're a package deal, fr fr)
π₯ EXIT CODE π₯
the exit code is always 0 on success, and non-zero if there was a problem loading the compose.
so like, 0 = slay, non-zero = something went sideways while loading the compose π
π BUGS π
found a bug? bestie, please report it at:
https://pagure.io/compose-utils/issues
they wanna hear about it, no gatekeeping π«Ά
lowkey a reminder that this is a manpage for compose-write-repo-file in the General Commands Manual β if you ever need the official version, it's right there waiting for you π
and that's the whole page, bestie β written by the compose-utils girlies, dated like all good manpages are, and signed off with love. compose-write-repo-file(1) forever πβ¨π
π¦ where this page comes from
- fedora 43: compose-utils 0.1.50-13.fc43 Β· GPL-2.0-only
- fedora 44: compose-utils 0.1.51-1.fc44 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms