createrepo_c [options] <directory>
Uses rpm packages from <directory> to create repodata.
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.
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)
Show program's version number and exit.
-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 uses g_pattern_match() function, not glob(), for semantic differences see https://developer.gnome.org/glib/stable/glib-Glob-style-pattern-matching.html
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 in repomd.xml and for packages in the metadata. The default is now sha256.
Make sure all xml generated is formatted (default)
Generate sqlite databases for use with yum.
Do not generate sqlite databases in the repository.
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.
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.
Skip the stat() 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).
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.
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 --pkglist or --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.
Only import the last N changelog entries, from each rpm, into the metadata.
Include the file's checksum in the metadata filename, helps HTTP caching (default).
Do not include the file's checksum in the metadata filename.
Specify NUM to 0 to remove all repodata present in old repomd.xml or any other positive number to keep all old repodata. Use --compatibility flag to get the behavior of original createrepo: Keep around the latest (by timestamp) NUM copies of the old repodata (works only for primary, filelists, other and their DB variants).
Distro tag and optional cpeid: --distro'cpeid,textname'.
Tags for the content in the repository.
Tags to describe the repository itself.
User-specified revision for this repository.
Set timestamp fields in repomd.xml and last modification times of created repodata to a value given with --revision. This requires --revision to be a timestamp formatted in 'date +%s' format.
Output the paths to the pkgs actually read useful with --update.
Number of workers to spawn to read rpms.
Use xz for repodata compression.
Which compression type to use.
Which compression type to use (even for primary, filelists and other xml).
Generate zchunk files as well as the standard repodata.
Directory containing compression dictionaries for use by zchunk
Keep all additional metadata (not primary, filelists and other xml or sqlite files, nor their compressed variants) from source repository during update.
Enforce maximal compatibility with classical createrepo (Affects only: --retain-old-md).
During --update, remove all files in repodata/ 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
Tells createrepo to generate deltarpms and the delta metadata.
Paths to look for older pkgs to delta against. Can be specified multiple times.
The number of older versions to make deltas against. Defaults to 1.
Max size of an rpm that to run deltarpm against (in bytes).
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 if TMPDIR is set to /tmp or not set at all, because then the /tmp is used and /tmp dir is often a ramdisk.
Ignore NUM of directory components in location_href during repodata generation
Append this prefix before location_href in output repodata
Checksum type to be used in repomd.xml
Exit with retval 2 if there were any errors during processing
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.