1createrepo(8) createrepo(8)
2
3
4
6 createrepo - Create repomd (xml-rpm-metadata) repository
7
8
10 createrepo [options] <directory>
11
13 createrepo is a program that creates a repomd (xml-based rpm metadata)
14 repository from a set of rpms.
15
16
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 -n --includepkg
34 specify pkgs to include on the command line. Takes urls as well
35 as local paths.
36
37 -q --quiet
38 Run quietly.
39
40 -g --groupfile <groupfile>
41 A precreated xml filename to point to for group information.
42 See examples section below for further explanation.
43
44 -v --verbose
45 Run verbosely.
46
47 -c --cachedir <path>
48 Specify a directory to use as a cachedir. This allows createrepo
49 to create a cache of checksums of packages in the repository. In
50 consecutive runs of createrepo over the same repository of files
51 that do not have a complete change out of all packages this
52 decreases the processing time dramatically.
53
54 --update
55 If metadata already exists in the outputdir and an rpm is
56 unchanged (based on file size and mtime) since the metadata was
57 generated, reuse the existing metadata rather than recalculating
58 it. In the case of a large repository with only a few new or
59 modified rpms this can significantly reduce I/O and processing
60 time.
61
62 --skip-stat
63 skip the stat() call on a --update, assumes if the filename is
64 the same then the file is still the same (only use this if
65 you're fairly trusting or gullible).
66
67 -C --checkts
68 Don't generate repo metadata, if their timestamps are newer than
69 its rpms. This option decreases the processing time drastically
70 again, if you happen to run it on an unmodified repo, but it is
71 (currently) mutual exclusive with the --split option.
72
73 --split
74 Run in split media mode. Rather than pass a single directory,
75 take a set of directories corresponding to different volumes in
76 a media set.
77
78 -p --pretty
79 Output xml files in pretty format.
80
81 -V --version
82 Output version.
83
84 -h --help
85 Show help menu.
86
87
88 -d --database
89 Generate sqlite databases for use with yum.
90
91 -S --skip-symlinks
92 Ignore symlinks of packages
93
94 -s --checksum
95 Choose the checksum type used in repomd.xml and for packages in
96 the metadata. The default is now "sha256" (if python has hash‐
97 lib). The older default was "sha", which is actually "sha1",
98 however explicitly using "sha1" doesn't work on older (3.0.x)
99 versions of yum, you need to specify "sha".
100
101 --profile
102 Output time based profiling information.
103
104 --changelog-limit CHANGELOG_LIMIT
105 Only import the last N changelog entries, from each rpm, into
106 the metadata
107
108 --unique-md-filenames
109 Include the file's checksum in the metadata filename, helps HTTP
110 caching
111
112 --distro
113 Specify distro tags. Can be specified more than once. Optional
114 syntax specifying a cpeid(http://cpe.mitre.org/) --dis‐
115 tro=cpeid,distrotag
116
117 --content
118 Specify keyword/tags about the content of the repository. Can be
119 specified more than once.
120
121 --revision
122 Arbitrary string for a repository revision.
123
124 --deltas
125 Tells createrepo to generate deltarpms and the delta metadata
126
127 --oldpackagedirs PATH
128 paths to look for older pkgs to delta against. Can be specified
129 multiple times
130
131 --num-deltas int
132 the number of older versions to make deltas against. Defaults to
133 1
134
135
136
138 Here is an example of a repository with a groups file. Note that the
139 groups file should be in the same directory as the rpm packages (i.e.
140 /path/to/rpms/comps.xml).
141
142 createrepo -g comps.xml /path/to/rpms
143
144
146 repodata/filelists.xml.gz
147 repodata/other.xml.gz
148 repodata/primary.xml.gz
149 repodata/repomd.xml
150
152 yum [4m(8) yum.conf [4m(5)
153
154
156 See the Authors file
157
158
160 Any bugs which are found should be emailed to the mailing list: rpm-
161 metadata@lists.baseurl.org or reported in trac at: http://cre‐
162 aterepo.baseurl.org
163
164
165
166Seth Vidal 2005 Jan 2 createrepo(8)