.TH "createrepo" "8" "2005 Jan 2" "Seth Vidal" "" .SH "NAME" createrepo \- Create repomd (xml-rpm-metadata) repository .SH "SYNOPSIS" \fBcreaterepo\fP [options] .PP .SH "DESCRIPTION" \fBcreaterepo\fP is a program that creates a repomd (xml-based rpm metadata) repository from a set of rpms. .SH "OPTIONS" .IP "\fB\-u --baseurl\fP " Optional base URL location for all files. .IP "\fB\-o --outputdir\fP " Optional output directory (useful for read only media). .IP "\fB\-x --excludes\fP " File globs to exclude, can be specified multiple times. .IP "\fB\-i --pkglist\fP " 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. .IP "\fB\-n --includepkg\fP" specify pkgs to include on the command line. Takes urls as well as local paths. .IP "\fB\-q --quiet\fP" Run quietly. .IP "\fB\-g --groupfile\fP " A precreated xml filename to point to for group information. .br See examples section below for further explanation. .IP "\fB\-v --verbose\fP" Run verbosely. .IP "\fB\-c --cachedir\fP " Specify a directory to use as a cachedir. This allows createrepo to create a cache of checksums of packages in the repository. In consecutive runs of createrepo over the same repository of files that do not have a complete change out of all packages this decreases the processing time dramatically. .br .IP "\fB\--update\fP" 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. .br .IP "\fB\--skip-stat\fP" 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). .br .IP "\fB\-C --checkts\fP" Don't generate repo metadata, if their timestamps are newer than its rpms. This option decreases the processing time drastically again, if you happen to run it on an unmodified repo, but it is (currently) mutual exclusive with the --split option. .br .IP "\fB\--split\fP" Run in split media mode. Rather than pass a single directory, take a set of directories corresponding to different volumes in a media set. .br .IP "\fB\-p --pretty\fP" Output xml files in pretty format. .IP "\fB\-V --version\fP" Output version. .IP "\fB\-h --help\fP" Show help menu. .IP "\fB\-d --database\fP" Generate sqlite databases for use with yum. This is now the default. .IP "\fB\--no-database\fP" Do not generate sqlite databases in the repository. .IP "\fB\-S --skip-symlinks\fP" Ignore symlinks of packages .IP "\fB\-s --checksum\fP" Choose the checksum type used in repomd.xml and for packages in the metadata. The default is now "sha256" (if python has hashlib). The older default was "sha", which is actually "sha1", however explicitly using "sha1" doesn't work on older (3.0.x) versions of yum, you need to specify "sha". .IP "\fB\--profile\fP" Output time based profiling information. .IP "\fB\--changelog-limit\fP CHANGELOG_LIMIT" Only import the last N changelog entries, from each rpm, into the metadata .IP "\fB\--unique-md-filenames\fP" Include the file's checksum in the metadata filename, helps HTTP caching (default) .IP "\fB\--simple-md-filenames\fP" Do not include the file's checksum in the metadata filename. .IP "\fB\--distro\fP" Specify distro tags. Can be specified more than once. Optional syntax specifying a cpeid(http://cpe.mitre.org/) --distro=cpeid,distrotag .IP "\fB\--content\fP" Specify keyword/tags about the content of the repository. Can be specified more than once. .IP "\fB\--repo\fP" Specify keyword/tags about the repository itself. Can be specified more than once. .IP "\fB\--revision\fP" Arbitrary string for a repository revision. .IP "\fB\--deltas\fP" Tells createrepo to generate deltarpms and the delta metadata .IP "\fB\--oldpackagedirs\fP PATH" paths to look for older pkgs to delta against. Can be specified multiple times .IP "\fB\--num-deltas\fP int" the number of older versions to make deltas against. Defaults to 1 .SH "EXAMPLES" Here is an example of a repository with a groups file. Note that the groups file should be in the same directory as the rpm packages (i.e. /path/to/rpms/comps.xml). .br .PP \fBcreaterepo\fP \-g comps.xml /path/to/rpms .SH "FILES" .nf repodata/filelists.xml.gz repodata/other.xml.gz repodata/primary.xml.gz repodata/repomd.xml .fi .PP .SH "SEE ALSO" .I yum (8) yum.conf (5) .PP .SH "AUTHORS" .nf See the Authors file .fi .PP .SH "BUGS" Any bugs which are found should be emailed to the mailing list: rpm-metadata@lists.baseurl.org or reported in trac at: http://createrepo.baseurl.org .fi