CREATEREPO_C(8)
π CREATEREPO_C(8) β createrepo_c π
π NAME π
createrepo_c β Create rpm-md format (xml-rpm-metadata) repository. Periodt. π
π¦ SYNOPSIS π¦
createrepo_c [options] <directory>
πΈ DESCRIPTION πΈ
Ok so bestie, hereβs the vibe: createrepo_c uses rpm packages from <directory> to create repodata. No cap. π
If itβs compiled with libmodulemd support, modular metadata inside <directory> thatβs identified by the patterns below β plus all their compressed variants β is automatically collected, merged and added to the repodata. 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 programβs version number and exit. Bye bestie π-q --quietβ Run quietly. Shhh π€«-v --verboseβ Run verbosely. Itβs giving βtell me everythingβ π£οΈ-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. ποΈ-u --baseurl URLβ Optional base URL location for all files. π-g --groupfile GROUPFILEβ Path to groupfile to include in metadata. π-s --checksum CHECKSUM_TYPEβ Choose the checksum type used inrepomd.xmland for packages in the metadata. The default is nowsha256. π-p --prettyβ Make sure all xml generated is formatted (default). π-p --no-prettyβ Minify the generated xml content. On average this reduces compressed size by2%. πͺ-d --databaseβ DEPRECATED: Generate sqlite databases for use with yum. π«--no-databaseβ Do not generate sqlite databases in the repository. π«--updateβ If metadata already exists inoutputdirand 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. π--update-md-pathβ Existing metadata from this path are loaded and reused in addition to those present inoutputdir(works only with--update). Can be specified multiple times. π--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). π--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. πΏ-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. π-n --includepkg PACKAGEβ Specify pkgs to include on the command line. Takes urls as well as local paths. π--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). β»οΈ-o --outputdir URLβ Optional output directory. π-S --skip-symlinksβ Ignore symlinks of packages. π«π--changelog-limit NUMβ Only import the last N changelog entries, from each rpm, into the metadata. π--unique-md-filenamesβ Include the fileβs checksum in the metadata filename, helps HTTP caching (default). π·οΈ--simple-md-filenamesβ Do not include the fileβs checksum in the metadata filename. π·οΈ--retain-old-md NUMβ SpecifyNUMto0to remove all repodata present in oldrepomd.xmlor any other positive number to keep all old repodata. Use--compatibilityflag to get the behavior of original createrepo: Keep around the latest (by timestamp)NUMcopies of the old repodata (works only for primary, filelists, other and their DB variants). ποΈ--distro DISTROβ Distro tag and optional cpeid:--distro'cpeid,textname'. π--content CONTENT_TAGSβ Tags for the content in the repository. π·οΈ--repo REPO_TAGSβ Tags to describe the repository itself. π·οΈ--revision REVISIONβ User-specified revision for this repository. π--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 in'date +%s'format. β°--read-pkgs-list READ_PKGS_LISTβ Output the paths to the pkgs actually read useful with--update. π--workersβ Number of workers to spawn to read rpms. π―--xzβ Use xz for repodata compression. ποΈ--compress-type COMPRESSION_TYPEβ Which compression type to use. Supported compressions are:bz2,gz,zck,zstd,xz. π§΅--general-compress-type COMPRESSION_TYPEβ Which compression type to use (even for primary, filelists and other xml). π§΅--zckβ Generate zchunk files as well as the standard repodata. π§--zck-dict-dir ZCK_DICT_DIRβ Directory containing compression dictionaries for use by zchunk. π--keep-all-metadataβ Keep all additional metadata (not primary, filelists and other xml or sqlite files, nor their compressed variants) from source repository during update (default). π«Ά--discard-additional-metadataβ Discard all additional metadata (not primary, filelists and other xml or sqlite files, nor their compressed variants) from source repository during update. ποΈ--compatibilityβ Enforce maximal compatibility with classical createrepo (Changes--retain-old-mdbehavior, defaults to Gzip for compression). π§--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). β³-c --cachedir CACHEDIR.β Set path to cache dir. π¦--deltasβ Tells createrepo to generate deltarpms and the delta metadata. π©Ή--oldpackagedirs PATHβ Paths to look for older pkgs to delta against. Can be specified multiple times. π--num-deltas INTβ The number of older versions to make deltas against. Defaults to1. π’--max-delta-rpm-size MAX_DELTA_RPM_SIZEβ Max size of an rpm that to run deltarpm against (in bytes). π--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. πΎ--cut-dirs NUMβ IgnoreNUMof directory components inlocation_hrefduring repodata generation. βοΈ--location-prefix PREFIXβ Append this prefix beforelocation_hrefin output repodata. β--repomd-checksum CHECKSUM_TYPEβ Checksum type to be used inrepomd.xml. π--error-exit-valβ Exit with retval2if there were any errors during processing (option deprecated, on by default). π¨--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. β οΈ
β xoxo, your CREATEREPO_C(8) bestie, dated 2021-09-23 ππ«Ά
π¦ where this page comes from
- arch rolling: createrepo_c 1.2.5-1 Β· 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