.\" 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 "DNF5-REPOSYNC" "8" "Apr 18, 2025" "" "dnf5" .SH NAME dnf5-reposync \- Reposync Command .SH SYNOPSIS .sp \fBdnf5 [GLOBAL OPTIONS] reposync [OPTIONS]\fP .SH DESCRIPTION .sp The \fBreposync\fP command creates local copies of remote repositories. It avoids re\-downloading packages that are already present in the local directory. .sp By default, \fBreposync\fP synchronizes all enabled repositories. However, you can customize the set of repositories to be synchronized using standard DNF5 options such as \fB\-\-repo\fP, \fB\-\-enable\-repo\fP, or \fB\-\-disable\-repo\fP\&. .SH OPTIONS .INDENT 0.0 .TP .B \fB\-\-arch=, \-a \fP Download only packages for the specified architecture. This option can be specified multiple times. The default behavior is to download packages for all architectures. .TP .B \fB\-\-delete\fP Remove local packages that are no longer present in the remote repository. .TP .B \fB\-\-destdir=\fP Specifies the root path where downloaded repositories are stored, relative to the current working directory. Defaults to the current working directory. Each downloaded repository will have a subdirectory named after its ID within this path. .TP .B \fB\-\-download\-metadata\fP Download all repository metadata. The downloaded copy is instantly usable as a repository without the need to run \fBcreaterepo_c\fP\&. When used with \fB\-\-newest\-only\fP, only the latest package versions are downloaded. However, the metadata will still reference also older packages. To avoid issues caused by missing RPM files, consider updating the metadata using \fBcreaterepo_c \-\-update\fP\&. Otherwise, DNF will encounter errors when attempting to install older packages. .TP .B \fB\-\-gpgcheck, \-g\fP Remove packages that fail OpenPGP signature verification after downloading. The command exits with a code of \fB1\fP if at least one package is removed. .sp Note: For repositories configured with \fBgpgcheck=0\fP, OpenPGP signatures are not checked, even when this option is used. .TP .B \fB\-\-metadata\-path=\fP Specifies the root path where downloaded metadata files are stored. If not specified, it defaults to the value of \fB\-\-destdir\fP\&. .TP .B \fB\-\-newest\-only, \-n\fP Download only the latest package versions from each repository. .TP .B \fB\-\-norepopath\fP Prevents the repository id from being added to the download path. This option can only be used when syncing a single repository. (The default behavior adds the repository id to the path.) .TP .B \fB\-\-remote\-time\fP Attempts to set the timestamps of local downloaded files to match those on the remote side. .TP .B \fB\-\-safe\-write\-path=\fP Defines the filesystem path prefix where reposync is allowed to write files. If not specified, it defaults to the repository\(aqs download path. This option is useful for repositories that use relative locations of packages leading outside of the repository directory (e.g., \fB\&../packages_store/foo.rpm\fP). .sp Caution: Any file under the \fBsafe\-write\-path\fP can be overwritten. This option can only be used when syncing a single repository. .TP .B \fB\-\-srpm\fP Downloads source packages. Equivalent to using \fB\-\-arch=src\fP\&. .TP .B \fB\-\-urls, \-u\fP Prints the URLs of the files that would be downloaded without actually downloading them. .UNINDENT .SH EXAMPLES .INDENT 0.0 .TP .B \fBdnf reposync \-\-repoid=the_repo\fP Synchronize all packages from the repository with id \fBthe_repo\fP\&. The synchronized copy is saved in \fBthe_repo\fP subdirectory of the current working directory. .TP .B \fBdnf reposync \-\-destdir=/my/repos/path \-\-repoid=the_repo\fP Synchronize all packages from the repository with id \fBthe_repo\fP\&. In this case files are saved in \fB/my/repos/path/the_repo\fP directory. .TP .B \fBdnf reposync \-\-repoid=the_repo \-\-download\-metadata\fP Synchronize all packages and metadata from \fBthe_repo\fP repository. .sp Repository synchronized with \fB\-\-download\-metadata\fP option can be directly used with DNF for example by using \fB\-\-repofrompath\fP option: .sp \fBdnf \-\-repofrompath=syncedrepo,the_repo \-\-repoid=syncedrepo list \-\-available\fP .UNINDENT .SH AUTHOR See AUTHORS.md in dnf5 source distribution. .SH COPYRIGHT Contributors to the dnf5 project. .\" Generated by docutils manpage writer. .