1createrepo(8)                                                    createrepo(8)
2
3
4

NAME

6       createrepo - Create repomd (xml-rpm-metadata) repository
7
8

SYNOPSIS

10       createrepo [options] <directory>
11

DESCRIPTION

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

OPTIONS

18       -u --baseurl <url>
19              Optional base url location for  all  files.  (not  used  by  any
20              clients at this time)
21
22       -o --outputdir <url>
23              Optional output directory (useful for read only media).
24
25       -x --exclude <package>
26              File globs to exclude, can be specified multiple times.
27
28       -i --pkglist <filename>
29              specify a text file which contains the complete list of files to
30              include in the repository from the set found in  the  directory.
31              File format is one package per line, no wildcards or globs.
32
33       -q --quiet
34              Run quietly.
35
36       -g --groupfile <groupfile>
37              A precreated xml filename to point to for group information.
38              See examples section below for further explanation.
39
40       -v --verbose
41              Run verbosely.
42
43       -c --cachedir <path>
44              Specify a directory to use as a cachedir. This allows createrepo
45              to create a cache of checksums of packages in the repository. In
46              consecutive runs of createrepo over the same repository of files
47              that do not have a complete change  out  of  all  packages  this
48              decreases the processing time dramatically.
49
50       --update
51              If  metadata  already  exists  in  the  outputdir  and an rpm is
52              unchanged (based on file size and mtime) since the metadata  was
53              generated, reuse the existing metadata rather than recalculating
54              it. In the case of a large repository with only  a  few  new  or
55              modified  rpms  this can significantly reduce I/O and processing
56              time.
57
58       -C --checkts
59              Don't generate repo metadata, if their timestamps are newer than
60              its rpms.  This option decreases the processing time drastically
61              again, if you happen to run it on an unmodified repo, but it  is
62              (currently) mutual exclusive with the --split option.
63
64       --split
65              Run  in  split  media mode. Rather than pass a single directory,
66              take a set of directories corresponding to different volumes  in
67              a media set.
68
69       -p --pretty
70              Output xml files in pretty format.
71
72       -V --version
73              Output version.
74
75       -h --help
76              Show help menu.
77
78
79       -d --database
80              Generate sqlite databases for use with yum.
81
82

EXAMPLES

84       Here  is  an  example of a repository with a groups file. Note that the
85       groups file should be in the same directory as the rpm  packages  (i.e.
86       /path/to/rpms/comps.xml).
87
88       createrepo -g comps.xml /path/to/rpms
89
90

FILES

92       repodata/filelists.xml.gz
93       repodata/other.xml.gz
94       repodata/primary.xml.gz
95       repodata/repomd.xml
96

SEE ALSO

98       yum (8) yum.conf (5)
99
100

AUTHORS

102       Seth Vidal <skvidal@phy.duke.edu>
103
104

BUGS

106       Any  bugs  which  are found should be emailed to the mailing list: rpm-
107       metadata@linux.duke.edu
108
109
110
111Seth Vidal                        2005 Jan 2                     createrepo(8)
Impressum