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