1CREATEREPO_C(2019-07-19)                              CREATEREPO_C(2019-07-19)
2
3
4

NAME

6       createrepo_c - Create rpm-md format (xml-rpm-metadata) repository
7

SYNOPSIS

9       createrepo_c [options] <directory>
10

OPTIONS

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