Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/rpm-software-management/createrepo_c.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPavel Raiskup <praiskup@redhat.com>2019-12-21 18:00:45 +0300
committerNeal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>2020-01-03 16:07:30 +0300
commit437451f3bea5430c0a6f678b2a65ebbbbcb12de0 (patch)
tree00d7b79302e6f73222e0d290a47d65a651bb8562 /doc
parent6ba907f0af5ef43840b00b662e03c725a02b30ba (diff)
createrepo_c: add --recycle-pkglist option
This option is useful e.g. for very large repositories in copr [1] where we need to update the repodata after each package build or package removal. Re-generating everything from scratch with --update is simply too expensive (actually even the directory traversal is) so the only only viable option would be to maintain complete list of packages manually, and use '--pkglist --no-stat'. With '--recycle-pkglist' we can avoid the additional work with separate pkglists. Adding new builds can be done just like $ createrepo_c --no-stat --update --recycle-pkglist --pkglist <sth> and removing something can be done with $ createrepo_c --no-stat --update --recycle-pkglist --exclude <sth> [1] https://pagure.io/copr/copr/pull-request/1150
Diffstat (limited to 'doc')
-rw-r--r--doc/createrepo_c.88
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/createrepo_c.8 b/doc/createrepo_c.8
index bf4927a..c6208ad 100644
--- a/doc/createrepo_c.8
+++ b/doc/createrepo_c.8
@@ -90,6 +90,14 @@ Specify a text file which contains the complete list of files to include in the
.SS \-n \-\-includepkg PACKAGE
.sp
Specify pkgs to include on the command line. Takes urls as well as local paths.
+.SS \-\-recycle\-pkglist
+.sp
+Useful only with \fB\-\-update\fR. Read the list of packages from old metadata,
+and reuse it instead of (perhaps expensive) directory traversal. This doesn't
+collide with explicitly selected packages by \fB\-\-pkglist\fR or
+\fB\-\-includepkg\fR, such packages are appended to the recycled list.
+This option is useful for I/O optimal repo modifications (package removal by
+\fB\-\-exclude\fR, and additions with \fB\-\-pkglist\fR).
.SS \-o \-\-outputdir URL
.sp
Optional output directory.