CREATEREPO_C(8)
π CREATEREPO_C(8) β createrepo_c: create rpm-md format (xml-rpm-metadata) repository π
okay so bestie, welcome to the CREATEREPO_C(8) manual β this is the group chat where we turn a directory of rpm packages into repodata. no cap, it's giving package-manager main character energy π
β¨
πΈ NAME πΈ
createrepo_c β Create rpm-md format (xml-rpm-metadata) repository.
π SYNOPSIS π
createrepo_c [options] <directory>
π DESCRIPTION π
Uses rpm packages from <directory> to create repodata. literally the whole plot π«Ά
If compiled with libmodulemd support, modular metadata inside <directory> identified by the patterns below and all their compressed variants are automatically collected, merged and added to the repodata. slay, automatic β¨
The patterns are:
*.modulemd.yaml(recommended file name:N:S:V:C:A.modulemd.yaml)*.modulemd-defaults.yaml(recommended file name:N.modulemd-defaults.yaml)modules.yaml(recommended way of importing multiple documents at once)
π OPTIONS π
-V,--versionβ Show the program's version number and exit. cute and brief π-q,--quietβ Run quietly. no chatter, just vibes π€«-v,--verboseβ Run verbosely. tell me EVERYTHING bestie π£οΈ-x,--excludes PACKAGE_NAME_GLOBβ Path patterns to exclude, can be specified multiple times. The patterns are matched against relative paths to RPMs. Note that the feature usesg_pattern_match()function, notglob(), for semantic differences seehttps://developer.gnome.org/glib/stable/glib-Glob-style-pattern-matching.htmlπ--basedir BASEDIRβ Basedir for path to directories. set the base, bestie π-u,--baseurl URLβ Optional base URL location for all files. URL era π«-g,--groupfile GROUPFILEβ Path to groupfile to include in metadata. groupfile said include me π-s,--checksum CHECKSUM_TYPEβ Choose the checksum type used inrepomd.xmland for packages in the metadata. The default is nowsha256. iconic default π-p,--prettyβ Make sure all xml generated is formatted (default). pretty xml, pretty vibes π-p,--no-prettyβ Minify the generated xml content. On average this reduces compressed size by2%. tiny but real π-d,--databaseβ Generate sqlite databases for use with yum. yum yum π--no-databaseβ Do not generate sqlite databases in the repository. no DB, no problem π--updateβ If metadata already exists in the outputdir and an rpm is unchanged (based on file size and mtime) since the metadata was generated, reuse the existing metadata rather than recalculating it. In the case of a large repository with only a few new or modified rpms this can significantly reduce I/O and processing time. efficiency queen π--update-md-pathβ Existing metadata from this path are loaded and reused in addition to those present in the outputdir (works only with--update). Can be specified multiple times. stack those paths π«Ά--skip-statβ Skip thestat()call on a--update, assumes if the filename is the same then the file is still the same (only use this if you're fairly trusting or gullible). bestie this is a trust fall π--splitβ Run in split media mode. Rather than pass a single directory, take a set of directories corresponding to different volumes in a media set. Meta data is created in the first given directory. split media, split attention π-i,--pkglist FILENAMEβ Specify a text file which contains the complete list of files to include in the repository from the set found in the directory. File format is one package per line, no wildcards or globs. list bestie, list π-n,--includepkg PACKAGEβ Specify pkgs to include on the command line. Takes urls as well as local paths. command-line includes, okayyy π--recycle-pkglistβ Useful only with--update. Read the list of packages from old metadata, and reuse it instead of (perhaps expensive) directory traversal. This doesn't collide with explicitly selected packages by--pkglistor--includepkg, such packages are appended to the recycled list. This option is useful for I/O optimal repo modifications (package removal by--exclude, and additions with--pkglist). recycle era β»οΈ-o,--outputdir URLβ Optional output directory. where the output goes π-S,--skip-symlinksβ Ignore symlinks of packages. not today, symlinks π«--changelog-limit NUMβ Only import the lastNchangelog entries, from each rpm, into the metadata. keep the recent lore only π--unique-md-filenamesβ Include the file's checksum in the metadata filename, helps HTTP caching (default). cache-friendly and iconic π--simple-md-filenamesβ Do not include the file's checksum in the metadata filename. simple filenames, simple life π¦--retain-old-md NUMβ SetNUMto0to remove all repodata present in oldrepomd.xml, or set any other positive number to keep all old repodata. Use--compatibilityflag to get the behavior of originalcreaterepo: Keep around the latest (by timestamp)NUMcopies of the old repodata (works only forprimary,filelists,otherand their DB variants). old repodata custody battle π--distro DISTROβ Distro tag and optional cpeid:--distro'cpeid,textname'. distro tagging bestie π·οΈ--content CONTENT_TAGSβ Tags for the content in the repository. tag the content β¨--repo REPO_TAGSβ Tags to describe the repository itself. tag the repo, periodt π--revision REVISIONβ User-specified revision for this repository. revision said it's her turn π--set-timestamp-to-revisionβ Set timestamp fields inrepomd.xmland last modification times of created repodata to a value given with--revision. This requires--revisionto be a timestamp formatted indate +%sformat. timestamp slay β°--read-pkgs-list READ_PKGS_LISTβ Output the paths to the pkgs actually read useful with--update. receipts for what got read π§Ύ--workersβ Number of workers to spawn to read rpms. worker bees assemble π--xzβ Usexzfor repodata compression. xz era ποΈ--compress-type COMPRESSION_TYPEβ Which compression type to use. Supported compressions are:bz2,gz,zck,zstd,xz. pick your compression bestie π--general-compress-type COMPRESSION_TYPEβ Which compression type to use (even forprimary,filelistsandotherxml). general compression energy π--zckβ Generate zchunk files as well as the standard repodata. zchunk said hi π--zck-dict-dir ZCK_DICT_DIRβ Directory containing compression dictionaries for use by zchunk. dictionary directory, iykyk π--keep-all-metadataβ Keep all additional metadata (notprimary,filelistsandotherxml or sqlite files, nor their compressed variants) from source repository during update (default). keep keep keep π--discard-additional-metadataβ Discard all additional metadata (notprimary,filelistsandotherxml or sqlite files, nor their compressed variants) from source repository during update. bye extra metadata π--compatibilityβ Enforce maximal compatibility with classicalcreaterepo(Changes--retain-old-mdbehavior, uses Gzip for compression). old-school compatibility, respectfully π«Ά--retain-old-md-by-age AGEβ During--update, remove all files inrepodata/which are older then the specified period of time. (e.g.'2h','30d',...). Available units (m- minutes,h- hours,d- days). age check, bestie β³-c,--cachedir CACHEDIR.β Set path to cache dir. cache directory said set me ποΈ--deltasβ Tells createrepo to generate deltarpms and the delta metadata. deltas, slay π₯--oldpackagedirs PATHβ Paths to look for older pkgs to delta against. Can be specified multiple times. old package directories, we see you π--num-deltas INTβ The number of older versions to make deltas against. Defaults to1. one delta default, okayyy π--max-delta-rpm-size MAX_DELTA_RPM_SIZEβ Max size of an rpm that to run deltarpm against (in bytes). size limit, bytes era π--local-sqliteβ Gen sqlite DBs locally (into a directory for temporary files). Sometimes, sqlite has a trouble to gen DBs on a NFS mount, use this option in such cases. This option could lead to a higher memory consumption ifTMPDIRis set to/tmpor not set at all, because then the/tmpis used and/tmpdir is often a ramdisk. local sqlite, memory warning bestie π--cut-dirs NUMβ IgnoreNUMof directory components inlocation_hrefduring repodata generation. cut cut cut βοΈ--location-prefix PREFIXβ Append this prefix beforelocation_hrefin output repodata. prefix era π--repomd-checksum CHECKSUM_TYPEβ Checksum type to be used inrepomd.xml. repomd checksum, slay π--error-exit-valβ Exit with retval2if there were any errors during processing (option deprecated, on by default). deprecated but still on, iconic behavior π--ignore-lockβ Expert (risky) option: Ignore an existing.repodata/. Remove the existing.repodata/and create an empty new one to serve as a lock for other createrepo instances. For the repodata generation, a different temporary dir with the name in format.repodata.time.microseconds.pid/will be used. NOTE: Use this option on your own risk! If two createrepos run simultaneously, then the state of the generated metadata is not guaranteed - it can be inconsistent and wrong. bestie, this is the risky one, do not ignore that warning ππ₯
Bye bestie! This page is the 2021-09-23 edition of CREATEREPO_C(8) β source/version plus date, signed off with maximum sparkle ππβ¨
π¦ where this page comes from
- opensuse-leap 16.0: createrepo_c 1.1.0-160000.2.2 Β· GPL-2.0-or-later
- opensuse-leap 16.0: createrepo_c 1.1.0-160000.2.2 Β· GPL-2.0-or-later
- opensuse-leap 16.0: createrepo_c 1.1.0-160000.2.2 Β· GPL-2.0-or-later
- opensuse-leap 16.0: createrepo_c 1.1.0-160000.2.2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms