|
NAMEcreaterepo_c - Create rpm-md format (xml-rpm-metadata) repository SYNOPSIScreaterepo_c [options] <directory> DESCRIPTIONUses 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:
OPTIONS-V --versionShow program's version number and exit. -q --quietRun quietly. -v --verboseRun verbosely. -x --excludes PACKAGE_NAME_GLOBPath 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 BASEDIRBasedir for path to directories. -u --baseurl URLOptional base URL location for all files. -g --groupfile GROUPFILEPath to groupfile to include in metadata. -s --checksum CHECKSUM_TYPEChoose the checksum type used in repomd.xml and for packages in the metadata. The default is now sha256. -p --prettyMake sure all xml generated is formatted (default) -p --no-prettyMinify the generated xml content. On average this reduces compressed size by 2%. -d --databaseDEPRECATED: Generate sqlite databases for use with yum. --no-databaseDo not generate sqlite databases in the repository. --updateIf 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. --update-md-pathExisting 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-statSkip 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). --splitRun 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 FILENAMESpecify 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 PACKAGESpecify pkgs to include on the command line. Takes urls as well as local paths. --recycle-pkglistUseful 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 URLOptional output directory. -S --skip-symlinksIgnore symlinks of packages. --changelog-limit NUMOnly import the last N changelog entries, from each rpm, into the metadata. --unique-md-filenamesInclude the file's checksum in the metadata filename, helps HTTP caching (default). --simple-md-filenamesDo not include the file's checksum in the metadata filename. --retain-old-md NUMSpecify 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 DISTRODistro tag and optional cpeid: --distro'cpeid,textname'. --content CONTENT_TAGSTags for the content in the repository. --repo REPO_TAGSTags to describe the repository itself. --revision REVISIONUser-specified revision for this repository. --set-timestamp-to-revisionSet 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. --read-pkgs-list READ_PKGS_LISTOutput the paths to the pkgs actually read useful with --update. --workersNumber of workers to spawn to read rpms. --xzUse xz for repodata compression. --compress-type COMPRESSION_TYPEWhich compression type to use. Supported compressions are: bz2, gz, zck, zstd, xz. --general-compress-type COMPRESSION_TYPEWhich compression type to use (even for primary, filelists and other xml). --zckGenerate zchunk files as well as the standard repodata. --zck-dict-dir ZCK_DICT_DIRDirectory containing compression dictionaries for use by zchunk --keep-all-metadataKeep all additional metadata (not primary, filelists and other xml or sqlite files, nor their compressed variants) from source repository during update (default). --discard-additional-metadataDiscard all additional metadata (not primary, filelists and other xml or sqlite files, nor their compressed variants) from source repository during update. --compatibilityEnforce maximal compatibility with classical createrepo (Changes --retain-old-md behavior, defaults to Gzip for compression). --retain-old-md-by-age AGEDuring --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 --deltasTells createrepo to generate deltarpms and the delta metadata. --oldpackagedirs PATHPaths to look for older pkgs to delta against. Can be specified multiple times. --num-deltas INTThe number of older versions to make deltas against. Defaults to 1. --max-delta-rpm-size MAX_DELTA_RPM_SIZEMax size of an rpm that to run deltarpm against (in bytes). --local-sqliteGen 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. --cut-dirs NUMIgnore NUM of directory components in location_href during repodata generation --location-prefix PREFIXAppend this prefix before location_href in output repodata --repomd-checksum CHECKSUM_TYPEChecksum type to be used in repomd.xml --error-exit-valExit with retval 2 if there were any errors during processing (option deprecated, on by default) --ignore-lockExpert (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.
|