1CREATEREPO_C(2018-06-13) CREATEREPO_C(2018-06-13)
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 Keep around the latest (by timestamp) N copies of the old repodata.
94
95 --distro DISTRO
96 Distro tag and optional cpeid: --distro'cpeid,textname'.
97
98 --content CONTENT_TAGS
99 Tags for the content in the repository.
100
101 --repo REPO_TAGS
102 Tags to describe the repository itself.
103
104 --revision REVISION
105 User-specified revision for this repository.
106
107 --set-timestamp-to-revision
108 Set timestamp field in metatada to value given with --revision. This
109 require --revision being a timestamp formated in "date +%s" format.
110 This option also clamp created files modification time to the same
111 value.
112
113 --read-pkgs-list READ_PKGS_LIST
114 Output the paths to the pkgs actually read useful with --update.
115
116 --workers
117 Number of workers to spawn to read rpms.
118
119 --xz
120 Use xz for repodata compression.
121
122 --zck
123 Generate zchunk files as well as the standard repodata.
124
125 --zck-primary-dict ZCK_PRIMARY_DICT
126 Compression dictionary to use for zchunk primary file
127
128 --zck-filelists-dict ZCK_FILELISTS_DICT
129 Compression dictionary to use for zchunk filelists file
130
131 --zck-other-dict ZCK_OTHER_DICT
132 Compression dictionary to use for zchunk other file
133
134 --compress-type COMPRESSION_TYPE
135 Which compression type to use.
136
137 --general-compress-type COMPRESSION_TYPE
138 Which compression type to use (even for primary, filelists and other
139 xml).
140
141 --keep-all-metadata
142 Keep all additional metadata (not primary, filelists and other xml or
143 sqlite files, nor their compressed variants) from source repository
144 during update.
145
146 --compatibility
147 Enforce maximal compatibility with classical createrepo.
148
149 --retain-old-md-by-age AGE
150 During --update, remove all files in repodata/ which are older then the
151 specified period of time. (e.g. '2h', '30d', ...). Available units (m -
152 minutes, h - hours, d - days)
153
154 -c --cachedir CACHEDIR.
155 Set path to cache dir
156
157 --deltas
158 Tells createrepo to generate deltarpms and the delta metadata.
159
160 --oldpackagedirs PATH
161 Paths to look for older pkgs to delta against. Can be specified multi‐
162 ple times.
163
164 --num-deltas INT
165 The number of older versions to make deltas against. Defaults to 1.
166
167 --max-delta-rpm-size MAX_DELTA_RPM_SIZE
168 Max size of an rpm that to run deltarpm against (in bytes).
169
170 --local-sqlite
171 Gen sqlite DBs locally (into a directory for temporary files). Some‐
172 times, sqlite has a trouble to gen DBs on a NFS mount, use this option
173 in such cases. This option could lead to a higher memory consumption if
174 TMPDIR is set to /tmp or not set at all, because then the /tmp is used
175 and /tmp dir is often a ramdisk.
176
177 --cut-dirs NUM
178 Ignore NUM of directory components in location_href during repodata
179 generation
180
181 --location-prefix PREFIX
182 Append this prefix before location_href in output repodata
183
184 --repomd-checksum CHECKSUM_TYPE
185 Checksum type to be used in repomd.xml
186
187 --error-exit-val
188 Exit with retval 2 if there were any errors during processing
189
190 --ignore-lock
191 Expert (risky) option: Ignore an existing .repodata/. (Remove the
192 existing .repodata/ and create an empty new one to serve as a lock for
193 other createrepo intances. For the repodata generation, a different
194 temporary dir with the name in format .repodata.time.microseconds.pid/
195 will be used). NOTE: Use this option on your own risk! If two createre‐
196 pos run simultaneously, then the state of the generated metadata is not
197 guaranted - it can be inconsistent and wrong.
198
199
200
201
202 CREATEREPO_C(2018-06-13)