Debian Codegraph @

upstream/fedora-44/man8/dnf4-reposync.8

raw
1 .\" Man page generated from reStructuredText
2 .\" by the Docutils 0.22.4 manpage writer.
3 .
4 .
5 .nr rst2man-indent-level 0
6 .
7 .de1 rstReportMargin
8 \\$1 \\n[an-margin]
9 level \\n[rst2man-indent-level]
10 level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
11 -
12 \\n[rst2man-indent0]
13 \\n[rst2man-indent1]
14 \\n[rst2man-indent2]
15 ..
16 .de1 INDENT
17 .\" .rstReportMargin pre:
18 . RS \\$1
19 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
20 . nr rst2man-indent-level +1
21 .\" .rstReportMargin post:
22 ..
23 .de UNINDENT
24 . RE
25 .\" indent \\n[an-margin]
26 .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
27 .nr rst2man-indent-level -1
28 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
29 .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
30 ..
31 .TH "DNF4-REPOSYNC" "8" "Feb 25, 2026" "4.10.1" "dnf-plugins-core"
32 .SH NAME
33 dnf4-reposync \- DNF reposync Plugin
34 .sp
35 Synchronize packages of a remote DNF repository to a local directory.
36 .SH SYNOPSIS
37 .sp
38 \fBdnf reposync [options]\fP
39 .SH DESCRIPTION
40 .sp
41 \fIreposync\fP makes local copies of remote repositories. Packages that are already present in the local directory are not downloaded again.
42 .SH OPTIONS
43 .sp
44 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.
45 .INDENT 0.0
46 .TP
47 .B \fB\-a <architecture>, \-\-arch=<architecture>\fP
48 Download only packages of given architectures (default is all architectures). Can be used multiple times.
49 .TP
50 .B \fB\-\-delete\fP
51 Delete local packages no longer present in repository.
52 .TP
53 .B \fB\-\-download\-metadata\fP
54 Download all repository metadata. Downloaded copy is instantly usable as a repository, no need to run createrepo_c
55 on it. When the option is used with \fI\-\-newest\-only\fP, only latest packages will be downloaded, but metadata will
56 still contain older packages. It might be useful to update metadata using \fIcreaterepo_c \-\-update\fP to remove
57 the packages with missing RPM files from metadata. Otherwise, DNF ends with an error due to the missing files
58 whenever it tries to download older packages.
59 .TP
60 .B \fB\-g, \-\-gpgcheck\fP
61 Remove packages that fail GPG signature checking after downloading. Exit code is \fB1\fP if at least one package was removed.
62 Note that for repositories with \fBgpgcheck=0\fP set in their configuration the GPG signature is not checked even with this option used.
63 .TP
64 .B \fB\-m, \-\-downloadcomps\fP
65 Also download and uncompress comps.xml. Consider using \fB\-\-download\-metadata\fP option which will download all available repository metadata.
66 .TP
67 .B \fB\-\-metadata\-path\fP
68 Root path under which the downloaded metadata are stored. It defaults to \fB\-\-download\-path\fP value if not given.
69 .TP
70 .B \fB\-n, \-\-newest\-only\fP
71 Download only newest packages per\-repo.
72 .TP
73 .B \fB\-\-norepopath\fP
74 Don\(aqt add the reponame to the download path. Can only be used when syncing a single repository (default is to add the reponame).
75 .TP
76 .B \fB\-p <download\-path>, \-\-download\-path=<download\-path>\fP
77 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.
78 .TP
79 .B \fB\-\-safe\-write\-path\fP
80 Specify the filesystem path prefix under which the reposync is allowed to write. If not specified it defaults to download path of the repository. Useful for repositories that use relative locations of packages out of repository directory (e.g. \(dq../packages_store/foo.rpm\(dq). Use with care, any file under the \fBsafe\-write\-path\fP can be overwritten. Can be only used when syncing a single repository.
81 .TP
82 .B \fB\-\-remote\-time\fP
83 Try to set the timestamps of the downloaded files to those on the remote side.
84 .TP
85 .B \fB\-\-source\fP
86 Download only source packages.
87 .TP
88 .B \fB\-u, \-\-urls\fP
89 Just print urls of what would be downloaded, don\(aqt download.
90 .UNINDENT
91 .SH EXAMPLES
92 .INDENT 0.0
93 .TP
94 .B \fBdnf reposync \-\-repoid=the_repo\fP
95 Synchronize all packages from the repository with id \(dqthe_repo\(dq. The synchronized copy is saved in \(dqthe_repo\(dq subdirectory of the current working directory.
96 .TP
97 .B \fBdnf reposync \-p /my/repos/path \-\-repoid=the_repo\fP
98 Synchronize all packages from the repository with id \(dqthe_repo\(dq. In this case files are saved in \(dq/my/repos/path/the_repo\(dq directory.
99 .TP
100 .B \fBdnf reposync \-\-repoid=the_repo \-\-download\-metadata\fP
101 Synchronize all packages and metadata from \(dqthe_repo\(dq repository.
102 .UNINDENT
103 .sp
104 Repository synchronized with \fB\-\-download\-metadata\fP option can be directly used in DNF for example by using \fB\-\-repofrompath\fP option:
105 .sp
106 \fBdnf \-\-repofrompath=syncedrepo,the_repo \-\-repoid=syncedrepo list \-\-available\fP
107 .SH SEE ALSO
108 .INDENT 0.0
109 .IP \(bu 2
110 \fBdnf(8)\fP, DNF Command Reference
111 .UNINDENT
112 .SH Author
113 See AUTHORS in your Core DNF Plugins distribution
114 .SH Copyright
115 2014, Red Hat, Licensed under GPLv2+
116 .\" End of generated man page.