.\" Man page generated from reStructuredText. . .TH "DNF-REPOSYNC" "8" "Nov 03, 2021" "4.0.24" "dnf-plugins-core" .SH NAME dnf-reposync \- DNF reposync Plugin . .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 .. .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 , \-\-arch=\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\(aqt 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=\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\(aqt 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 2021, Red Hat, Licensed under GPLv2+ .\" Generated by docutils manpage writer. .