File: createrepo.8

package info (click to toggle)
createrepo 0.9.9-1~bpo7+1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy-backports
  • size: 636 kB
  • sloc: python: 2,090; makefile: 357; sh: 98
file content (139 lines) | stat: -rw-r--r-- 4,971 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
.TH "createrepo" "8" "2005 Jan 2" "Seth Vidal" ""

.SH "NAME"
createrepo \- Create repomd (xml-rpm-metadata) repository

.SH "SYNOPSIS"
\fBcreaterepo\fP [options] <directory>
.PP

.SH "DESCRIPTION"
\fBcreaterepo\fP is a program that creates a repomd (xml-based rpm metadata) repository from a set of rpms.

.SH "OPTIONS"
.IP "\fB\-u \-\-baseurl\fP <url>"
Optional base URL location for all files.
.IP "\fB\-o \-\-outputdir\fP <url>"
Optional output directory (useful for read only media).
.IP "\fB\-x \-\-excludes\fP <package>"
File globs to exclude, can be specified multiple times.
.IP "\fB\-i \-\-pkglist\fP <filename>"
specify a text file which contains the complete list of files to
include in the repository from the set found in the directory. File format is one
package per line, no wildcards or globs.
.IP "\fB\-n \-\-includepkg\fP"
specify pkgs to include on the command line. Takes urls as well as local paths.
.IP "\fB\-q \-\-quiet\fP"
Run quietly.
.IP "\fB\-g \-\-groupfile\fP <groupfile>"
A precreated xml filename to point to for group information.
.br
See examples section below for further explanation.
.IP "\fB\-v \-\-verbose\fP"
Run verbosely.
.IP "\fB\-c \-\-cachedir\fP <path>"
Specify a directory to use as a cachedir. This allows createrepo to create a
cache of checksums of packages in the repository. In consecutive runs of
createrepo over the same repository of files that do not have a complete
change out of all packages this decreases the processing time dramatically.
.br
.IP "\fB\-\-update\fP"
If metadata already exists in the outputdir and an rpm is unchanged
(based on file size and mtime) since the metadata was generated, reuse
the existing metadata rather than recalculating it. In the case of a
large repository with only a few new or modified rpms this can
significantly reduce I/O and processing time.
.br
.IP "\fB\-\-skip\-stat\fP"
skip the stat() call on a \-\-update, assumes if the filename is the same
then the file is still the same (only use this if you're fairly trusting or
gullible).
.br
.IP "\fB\-C \-\-checkts\fP"
Don't generate repo metadata, if their timestamps are newer than its rpms.
This option decreases the processing time drastically again, if you happen
to run it on an unmodified repo, but it is (currently) mutual exclusive
with the \-\-split option.
.br
.IP "\fB\-\-split\fP"
Run in split media mode. Rather than pass a single directory, take a set of
directories corresponding to different volumes in a media set.
.br
.IP "\fB\-p \-\-pretty\fP"
Output xml files in pretty format.
.IP "\fB\-V \-\-version\fP"
Output version.
.IP "\fB\-h \-\-help\fP"
Show help menu.

.IP "\fB\-d \-\-database\fP"
Generate sqlite databases for use with yum. This is now the default.

.IP "\fB\-\-no\-database\fP"
Do not generate sqlite databases in the repository.

.IP "\fB\-S \-\-skip\-symlinks\fP"
Ignore symlinks of packages
.IP "\fB\-s \-\-checksum\fP"
Choose the checksum type used in repomd.xml and for packages in the metadata.
The default is now "sha256" (if python has hashlib). The older default was
"sha", which is actually "sha1", however explicitly using "sha1" doesn't work
on older (3.0.x) versions of yum, you need to specify "sha".
.IP "\fB\-\-profile\fP"
Output time based profiling information.
.IP "\fB\-\-changelog\-limit\fP CHANGELOG_LIMIT"
Only import the last N changelog entries, from each rpm, into the metadata
.IP "\fB\-\-unique\-md\-filenames\fP"
Include the file's checksum in the metadata filename, helps HTTP caching (default)

.IP "\fB\-\-simple\-md\-filenames\fP"
Do not include the file's checksum in the metadata filename.

.IP "\fB\-\-distro\fP"
Specify distro tags. Can be specified more than once. Optional syntax specifying a
cpeid(http://cpe.mitre.org/) \-\-distro=cpeid,distrotag
.IP "\fB\-\-content\fP"
Specify keyword/tags about the content of the repository. Can be specified more than once.
.IP "\fB\-\-repo\fP"
Specify keyword/tags about the repository itself. Can be specified more than once.
.IP "\fB\-\-revision\fP"
Arbitrary string for a repository revision.
.IP "\fB\-\-deltas\fP"
Tells createrepo to generate deltarpms and the delta metadata
.IP "\fB\-\-oldpackagedirs\fP PATH"
paths to look for older pkgs to delta against. Can be specified multiple times
.IP "\fB\-\-num\-deltas\fP int"
the number of older versions to make deltas against. Defaults to 1


.SH "EXAMPLES"
Here is an example of a repository with a groups file. Note that the
groups file should be in the same directory as the rpm packages
(i.e. /path/to/rpms/comps.xml).
.br
.PP
\fBcreaterepo\fP \-g comps.xml /path/to/rpms

.SH "FILES"
.nf
repodata/filelists.xml.gz
repodata/other.xml.gz
repodata/primary.xml.gz
repodata/repomd.xml 
.fi
.PP 
.SH "SEE ALSO"
.I yum (8) yum.conf (5)

.PP 
.SH "AUTHORS"
.nf 
See the Authors file
.fi 

.PP 
.SH "BUGS"
Any bugs which are found should be emailed to the mailing list:
rpm-metadata@lists.baseurl.org
or reported in trac at: http://createrepo.baseurl.org
.fi