LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

dnf-reposync

synchronize remote repositories locally

TLDR

Synchronize repository to local directory
$ dnf reposync --repoid [repo_name]
copy
Sync to custom location
$ dnf reposync --repoid [repo_name] -p [path/to/directory]
copy
Sync packages and metadata
$ dnf reposync --repoid [repo_name] --download-metadata
copy
Download only newest packages
$ dnf reposync --repoid [repo_name] -n
copy
Print URLs only
$ dnf reposync --repoid [repo_name] -u
copy
Preserve remote timestamps
$ dnf reposync --repoid [repo_name] --remote-time
copy

SYNOPSIS

dnf reposync [options]

DESCRIPTION

dnf reposync synchronizes packages and metadata from remote DNF repositories to a local directory. Part of dnf-plugins-core.
Useful for creating local mirrors or offline repositories.

PARAMETERS

--repoid repo

Repository to sync
-p, --download-path path
Download destination
--download-metadata
Also download repository metadata
-n, --newest-only
Only download newest package versions
-u, --urls
Print URLs instead of downloading
--remote-time
Preserve remote timestamps

CAVEATS

Requires dnf-plugins-core. Large repositories require significant disk space and bandwidth. Use --newest-only to reduce size.

SEE ALSO

dnf(8), createrepo(8), reposync(1)

Copied to clipboard
Kai