createrepo

Section: (8)
Updated: 2005 Jan 2
Index Return to Main Contents

 

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.
-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.
--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.
-U --update-info-location <url>
Query a specified server for package update metadata.
-p --pretty
Output xml files in pretty format.
-V --version
Output version.
-h --help
Show help menu.

 

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


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
EXAMPLES
FILES
SEE ALSO
AUTHORS
BUGS

linux.jgfs.net manual pages