summaryrefslogtreecommitdiffstats
path: root/upstream/debian-unstable/man1/reposync.1
blob: 914ae2ddb49d88207ccd46de21a7354f4252baaa (plain)
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
.\" Man page generated from reStructuredText.
.
.
.nr rst2man-indent-level 0
.
.de1 rstReportMargin
\\$1 \\n[an-margin]
level \\n[rst2man-indent-level]
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
-
\\n[rst2man-indent0]
\\n[rst2man-indent1]
\\n[rst2man-indent2]
..
.de1 INDENT
.\" .rstReportMargin pre:
. RS \\$1
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
. nr rst2man-indent-level +1
.\" .rstReportMargin post:
..
.de UNINDENT
. RE
.\" indent \\n[an-margin]
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
.nr rst2man-indent-level -1
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
..
.TH "REPOSYNC" "1" "Jan 22, 2023" "4.3.1" "dnf-plugins-core"
.SH NAME
reposync \- redirecting to DNF reposync Plugin
.sp
Synchronize packages of a remote DNF repository to a local directory.
.SH SYNOPSIS
.sp
\fBdnf reposync [options]\fP
.SH DESCRIPTION
.sp
\fIreposync\fP makes local copies of remote repositories. Packages that are already present in the local directory are not downloaded again.
.SH OPTIONS
.sp
All general DNF options are accepted. Namely, the \fB\-\-repoid\fP option can be used to specify the repositories to synchronize. See \fIOptions\fP in \fBdnf(8)\fP for details.
.INDENT 0.0
.TP
.B \fB\-a <architecture>, \-\-arch=<architecture>\fP
Download only packages of given architectures (default is all architectures). Can be used multiple times.
.TP
.B \fB\-\-delete\fP
Delete local packages no longer present in repository.
.TP
.B \fB\-\-download\-metadata\fP
Download all repository metadata. Downloaded copy is instantly usable as a repository, no need to run createrepo_c on it.
.TP
.B \fB\-g, \-\-gpgcheck\fP
Remove packages that fail GPG signature checking after downloading. Exit code is \fB1\fP if at least one package was removed.
Note that for repositories with \fBgpgcheck=0\fP set in their configuration the GPG signature is not checked even with this option used.
.TP
.B \fB\-m, \-\-downloadcomps\fP
Also download and uncompress comps.xml. Consider using \fB\-\-download\-metadata\fP option which will download all available repository metadata.
.TP
.B \fB\-\-metadata\-path\fP
Root path under which the downloaded metadata are stored. It defaults to \fB\-\-download\-path\fP value if not given.
.TP
.B \fB\-n, \-\-newest\-only\fP
Download only newest packages per\-repo.
.TP
.B \fB\-\-norepopath\fP
Don’t add the reponame to the download path. Can only be used when syncing a single repository (default is to add the reponame).
.TP
.B \fB\-p <download\-path>, \-\-download\-path=<download\-path>\fP
Root path under which the downloaded repositories are stored, relative to the current working directory. Defaults to the current working directory. Every downloaded repository has a subdirectory named after its ID under this path.
.TP
.B \fB\-\-remote\-time\fP
Try to set the timestamps of the downloaded files to those on the remote side.
.TP
.B \fB\-\-source\fP
Download only source packages.
.TP
.B \fB\-u, \-\-urls\fP
Just print urls of what would be downloaded, don’t download.
.UNINDENT
.SH EXAMPLES
.INDENT 0.0
.TP
.B \fBdnf reposync \-\-repoid=the_repo\fP
Synchronize all packages from the repository with id “the_repo”. The synchronized copy is saved in “the_repo” subdirectory of the current working directory.
.TP
.B \fBdnf reposync \-p /my/repos/path \-\-repoid=the_repo\fP
Synchronize all packages from the repository with id “the_repo”. In this case files are saved in “/my/repos/path/the_repo” directory.
.TP
.B \fBdnf reposync \-\-repoid=the_repo \-\-download\-metadata\fP
Synchronize all packages and metadata from “the_repo” repository.
.UNINDENT
.sp
Repository synchronized with \fB\-\-download\-metadata\fP option can be directly used in DNF for example by using \fB\-\-repofrompath\fP option:
.sp
\fBdnf \-\-repofrompath=syncedrepo,the_repo \-\-repoid=syncedrepo list \-\-available\fP
.SH SEE ALSO
.INDENT 0.0
.IP \(bu 2
\fBdnf(8)\fP, DNF Command Reference
.UNINDENT
.SH AUTHOR
See AUTHORS in your Core DNF Plugins distribution
.SH COPYRIGHT
2023, Red Hat, Licensed under GPLv2+
.\" Generated by docutils manpage writer.
.