1CREATEREPO_C(2018-06-13)                              CREATEREPO_C(2018-06-13)
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       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-dict-dir ZCK_DICT_DIR
126       Directory containing compression dictionaries for use by zchunk.
127
128   --compress-type COMPRESSION_TYPE
129       Which compression type to use.
130
131   --general-compress-type COMPRESSION_TYPE
132       Which compression type to use (even for primary,  filelists  and  other
133       xml).
134
135   --keep-all-metadata
136       Keep  all  additional metadata (not primary, filelists and other xml or
137       sqlite files, nor their compressed  variants)  from  source  repository
138       during update.
139
140   --compatibility
141       Enforce maximal compatibility with classical createrepo.
142
143   --retain-old-md-by-age AGE
144       During --update, remove all files in repodata/ which are older then the
145       specified period of time. (e.g. '2h', '30d', ...). Available units (m -
146       minutes, h - hours, d - days)
147
148   -c --cachedir CACHEDIR.
149       Set path to cache dir
150
151   --deltas
152       Tells createrepo to generate deltarpms and the delta metadata.
153
154   --oldpackagedirs PATH
155       Paths  to look for older pkgs to delta against. Can be specified multi‐
156       ple times.
157
158   --num-deltas INT
159       The number of older versions to make deltas against. Defaults to 1.
160
161   --max-delta-rpm-size MAX_DELTA_RPM_SIZE
162       Max size of an rpm that to run deltarpm against (in bytes).
163
164   --local-sqlite
165       Gen sqlite DBs locally (into a directory for  temporary  files).  Some‐
166       times,  sqlite has a trouble to gen DBs on a NFS mount, use this option
167       in such cases. This option could lead to a higher memory consumption if
168       TMPDIR  is set to /tmp or not set at all, because then the /tmp is used
169       and /tmp dir is often a ramdisk.
170
171   --cut-dirs NUM
172       Ignore NUM of directory components  in  location_href  during  repodata
173       generation
174
175   --location-prefix PREFIX
176       Append this prefix before location_href in output repodata
177
178   --repomd-checksum CHECKSUM_TYPE
179       Checksum type to be used in repomd.xml
180
181   --error-exit-val
182       Exit with retval 2 if there were any errors during processing
183
184   --ignore-lock
185       Expert  (risky)  option:  Ignore  an  existing  .repodata/. (Remove the
186       existing .repodata/ and create an empty new one to serve as a lock  for
187       other  createrepo  intances.  For  the repodata generation, a different
188       temporary dir with the name in format  .repodata.time.microseconds.pid/
189       will be used). NOTE: Use this option on your own risk! If two createre‐
190       pos run simultaneously, then the state of the generated metadata is not
191       guaranted - it can be inconsistent and wrong.
192
193
194
195
196                                                      CREATEREPO_C(2018-06-13)
Impressum