DNF4-REPOSYNC(8)
π DNF4-REPOSYNC(8) β the reposync glow-up
okay so bestie, welcome to dnf4-reposync, aka the DNF reposync Plugin β¨ (it lives in dnf-plugins-core, iykyk). It's got main character energy and exactly one job: synchronize packages of a remote DNF repository to a local directory π
π¦ SYNOPSIS
dnf reposync [options]
β¨ DESCRIPTION
reposync makes local copies of remote repositories, periodt. Packages that are already present in the local directory are not downloaded again β she's efficient like that π
no cap.
π₯ OPTIONS
All general DNF options are accepted, fr fr. Namely, the --repoid option can be used to specify the repositories to synchronize. Peep Options in dnf(8) for the details π
-a <architecture>,--arch=<architecture>β download only packages of given architectures (default is all architectures). Can be used multiple times, so go off π--deleteβ delete local packages no longer present in repository. bye bestie π--download-metadataβ download all repository metadata. The downloaded copy is instantly usable as a repository, no need to runcreaterepo_con it. When the option is used with--newest-only, only latest packages will be downloaded, but metadata will still contain older packages. It might be useful to update metadata usingcreaterepo_c --updateto remove the packages with missing RPM files from metadata. Otherwise, DNF ends with an error due to the missing files whenever it tries to download older packages π (yes that's a real gotcha, don't @ me)-g,--gpgcheckβ remove packages that fail GPG signature checking after downloading. Exit code is1if at least one package was removed. Note that for repositories withgpgcheck=0set in their configuration the GPG signature is not checked even with this option used π¨ (so like, don't feel too safe)-m,--downloadcompsβ also download and uncompresscomps.xml. Consider using--download-metadataoption which will download all available repository metadata π«Ά--metadata-pathβ root path under which the downloaded metadata are stored. It defaults to--download-pathvalue if not given πΈ-n,--newest-onlyβ download only newest packages per-repo. fresh fresh fresh π--norepopathβ don't add the reponame to the download path. Can only be used when syncing a single repository (default is to add the reponame) β-p <download-path>,--download-path=<download-path>β 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 π--safe-write-pathβ 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."../packages_store/foo.rpm"). Use with care β any file under the safe-write-path can be overwritten π Can be only used when syncing a single repository.--remote-timeβ try to set the timestamps of the downloaded files to those on the remote side. matching vibes only β°--sourceβ download only source packages π§-u,--urlsβ just print urls of what would be downloaded, don't download. window shopping, iconic π--min-buildtime <YYYY-MM-DD>β download only packages with buildtime newer thanYYYY-MM-DD. Note that this option may result in partially synchronized repositories and the missing packages can cause dependency issues π (she's a little chaotic, use responsibly)
π EXAMPLES
dnf reposync --repoid=the_repo
Synchronize all packages from the repository with id "the_repo". The synchronized copy is saved in "the_repo" subdirectory of the current working directory π
dnf reposync -p /my/repos/path --repoid=the_repo
Synchronize all packages from the repository with id "the_repo". In this case files are saved in "/my/repos/path/the_repo" directory π
dnf reposync --repoid=the_repo --download-metadata
Synchronize all packages and metadata from "the_repo" repository β¨
Repository synchronized with --download-metadata option can be directly used in DNF, for example by using --repofrompath option:
dnf --repofrompath=syncedrepo,the_repo --repoid=syncedrepo list
--available
like, she's ready to serve immediately, no extra steps π«Ά
π¦ SEE ALSO
dnf(8), DNF Command Reference π
π AUTHOR
See AUTHORS in your Core DNF Plugins distribution π
πΈ COPYRIGHT
2026, Red Hat, Licensed under GPLv2+ β
ngl bestie, that's the whole page. go sync something iconic π
mwah π β this was dnf-plugins-core version 4.7.0, dated Aug 10, 2026, and yes she ate πβ¨
π¦ where this page comes from
- centos-stream 10: dnf-plugins-core 4.7.0-12.el10 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms