1CREATEREPO_C(2019-07-19) CREATEREPO_C(2019-07-19)
2
3
4
6 createrepo_c - Create rpm-md format (xml-rpm-metadata) repository
7
9 createrepo_c [options] <directory>
10
12 -V --version
13 Show program's version number and exit.
14
15 -q --quiet
16 Run quietly.
17
18 -v --verbose
19 Run verbosely.
20
21 -x --excludes PACKAGE_NAME_GLOB
22 File globs to exclude, can be specified multiple times.
23
24 --basedir BASEDIR
25 Basedir for path to directories.
26
27 -u --baseurl URL
28 Optional base URL location for all files.
29
30 -g --groupfile GROUPFILE
31 Path to groupfile to include in metadata.
32
33 -s --checksum CHECKSUM_TYPE
34 Choose the checksum type used in repomd.xml and for packages in the
35 metadata. The default is now sha256.
36
37 -p --pretty
38 Make sure all xml generated is formatted (default)
39
40 -d --database
41 Generate sqlite databases for use with yum.
42
43 --no-database
44 Do not generate sqlite databases in the repository.
45
46 --update
47 If metadata already exists in the outputdir and an rpm is unchanged
48 (based on file size and mtime) since the metadata was generated, reuse
49 the existing metadata rather than recalculating it. In the case of a
50 large repository with only a few new or modified rpms this can signifi‐
51 cantly reduce I/O and processing time.
52
53 --update-md-path
54 Use the existing repodata for --update from this path.
55
56 --skip-stat
57 Skip the stat() call on a --update, assumes if the filename is the same
58 then the file is still the same (only use this if you're fairly trust‐
59 ing or gullible).
60
61 --split
62 Run in split media mode. Rather than pass a single directory, take a
63 set of directories corresponding to different volumes in a media set.
64 Meta data is created in the first given directory
65
66 -i --pkglist FILENAME
67 Specify a text file which contains the complete list of files to
68 include in the repository from the set found in the directory. File
69 format is one package per line, no wildcards or globs.
70
71 -n --includepkg PACKAGE
72 Specify pkgs to include on the command line. Takes urls as well as
73 local paths.
74
75 -o --outputdir URL
76 Optional output directory.
77
78 -S --skip-symlinks
79 Ignore symlinks of packages.
80
81 --changelog-limit NUM
82 Only import the last N changelog entries, from each rpm, into the meta‐
83 data.
84
85 --unique-md-filenames
86 Include the file's checksum in the metadata filename, helps HTTP
87 caching (default).
88
89 --simple-md-filenames
90 Do not include the file's checksum in the metadata filename.
91
92 --retain-old-md NUM
93 Specify NUM to 0 to remove all repodata present in old repomd.xml or
94 any other positive number to keep all old repodata. Use --compatibility
95 flag to get the behavior of original createrepo: Keep around the latest
96 (by timestamp) NUM copies of the old repodata (works only for primary,
97 filelists, other and their DB variants).
98
99 --distro DISTRO
100 Distro tag and optional cpeid: --distro'cpeid,textname'.
101
102 --content CONTENT_TAGS
103 Tags for the content in the repository.
104
105 --repo REPO_TAGS
106 Tags to describe the repository itself.
107
108 --revision REVISION
109 User-specified revision for this repository.
110
111 --set-timestamp-to-revision
112 Set timestamp fields in repomd.xml and last modification times of cre‐
113 ated repodata to a value given with --revision. This requires --revi‐
114 sion to be a timestamp formated in 'date +%s' format.
115
116 --read-pkgs-list READ_PKGS_LIST
117 Output the paths to the pkgs actually read useful with --update.
118
119 --workers
120 Number of workers to spawn to read rpms.
121
122 --xz
123 Use xz for repodata compression.
124
125 --compress-type COMPRESSION_TYPE
126 Which compression type to use.
127
128 --general-compress-type COMPRESSION_TYPE
129 Which compression type to use (even for primary, filelists and other
130 xml).
131
132 --zck
133 Generate zchunk files as well as the standard repodata.
134
135 --zck-dict-dir ZCK_DICT_DIR
136 Directory containing compression dictionaries for use by zchunk
137
138 --keep-all-metadata
139 Keep all additional metadata (not primary, filelists and other xml or
140 sqlite files, nor their compressed variants) from source repository
141 during update.
142
143 --compatibility
144 Enforce maximal compatibility with classical createrepo (Affects only:
145 --retain-old-md).
146
147 --retain-old-md-by-age AGE
148 During --update, remove all files in repodata/ which are older then the
149 specified period of time. (e.g. '2h', '30d', ...). Available units (m -
150 minutes, h - hours, d - days)
151
152 -c --cachedir CACHEDIR.
153 Set path to cache dir
154
155 --deltas
156 Tells createrepo to generate deltarpms and the delta metadata.
157
158 --oldpackagedirs PATH
159 Paths to look for older pkgs to delta against. Can be specified multi‐
160 ple times.
161
162 --num-deltas INT
163 The number of older versions to make deltas against. Defaults to 1.
164
165 --max-delta-rpm-size MAX_DELTA_RPM_SIZE
166 Max size of an rpm that to run deltarpm against (in bytes).
167
168 --local-sqlite
169 Gen sqlite DBs locally (into a directory for temporary files). Some‐
170 times, sqlite has a trouble to gen DBs on a NFS mount, use this option
171 in such cases. This option could lead to a higher memory consumption if
172 TMPDIR is set to /tmp or not set at all, because then the /tmp is used
173 and /tmp dir is often a ramdisk.
174
175 --cut-dirs NUM
176 Ignore NUM of directory components in location_href during repodata
177 generation
178
179 --location-prefix PREFIX
180 Append this prefix before location_href in output repodata
181
182 --repomd-checksum CHECKSUM_TYPE
183 Checksum type to be used in repomd.xml
184
185 --error-exit-val
186 Exit with retval 2 if there were any errors during processing
187
188 --ignore-lock
189 Expert (risky) option: Ignore an existing .repodata/. (Remove the
190 existing .repodata/ and create an empty new one to serve as a lock for
191 other createrepo intances. For the repodata generation, a different
192 temporary dir with the name in format .repodata.time.microseconds.pid/
193 will be used). NOTE: Use this option on your own risk! If two createre‐
194 pos run simultaneously, then the state of the generated metadata is not
195 guaranted - it can be inconsistent and wrong.
196
197
198
199
200 CREATEREPO_C(2019-07-19)