Man Linux: Main Page and Category List

NAME

       createrepo - Create repomd (xml-rpm-metadata) repository

SYNOPSIS

       createrepo [options] <directory>

DESCRIPTION

       createrepo  is a program that creates a repomd (xml-based rpm metadata)
       repository from a set of rpms.

OPTIONS

       -u --baseurl <url>
              Optional base url location for  all  files.  (not  used  by  any
              clients at this time)

       -o --outputdir <url>
              Optional output directory (useful for read only media).

       -x --exclude <package>
              File globs to exclude, can be specified multiple times.

       -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.

       -q --quiet
              Run quietly.

       -g --groupfile <groupfile>
              A precreated xml filename to point to for group information.
              See examples section below for further explanation.

       -v --verbose
              Run verbosely.

       -c --cachedir <path>
              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.

       --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.

       -C --checkts
              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.

       --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.

       -p --pretty
              Output xml files in pretty format.

       -V --version
              Output version.

       -h --help
              Show help menu.

       -d --database
              Generate sqlite databases for use with yum.

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).

       createrepo -g comps.xml /path/to/rpms

FILES

       repodata/filelists.xml.gz
       repodata/other.xml.gz
       repodata/primary.xml.gz
       repodata/repomd.xml

SEE ALSO

       yum (8) yum.conf (5)

AUTHORS

       Seth Vidal <skvidal@phy.duke.edu>

BUGS

       Any  bugs  which  are found should be emailed to the mailing list: rpm-
       metadata@linux.duke.edu