REPOSYNC(1)
π¦ REPOSYNC(1) π¦
okay so this is the REPOSYNC(1) page from the dnf-plugins-core manual, and it is literally all about syncing repos. bestie, let's get into it. π
πΈ NAME πΈ
reposync β redirecting to DNF reposync Plugin.
Synchronize packages of a remote DNF repository to a local directory. π
β¨ SYNOPSIS β¨
dnf reposync [options]
π DESCRIPTION π
okay so reposync makes local copies of remote repositories. Packages that are already present in the local directory are not downloaded again. slay, no duplicate downloads. β¨
π OPTIONS π
All general DNF options are accepted. Namely, the --repoid option can be used to specify the repositories to synchronize. See Options in dnf(8) for details. π
-a <architecture>,--arch=<architecture>β Download only packages of given architectures (default is all architectures). Can be used multiple times. π¦--deleteβ Delete local packages no longer present in repository. ποΈ--download-metadataβ Download all repository metadata. 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. π-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. π-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. β--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. β°--sourceβ Download only source packages. π¦-u,--urlsβ Just print urls of what would be downloaded, don't download. π
π 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
π«Ά SEE ALSO π«Ά
dnf(8), DNF Command Reference
π AUTHOR π
See AUTHORS in your Core DNF Plugins distribution
π§ COPYRIGHT π§
2014, Red Hat, Licensed under GPLv2+
mwah π β this was REPOSYNC(1) from dnf-plugins-core, version 4.10.1, dated Mar 28, 2025. bye bestie π«Ά
π¦ where this page comes from
- opensuse-leap 16.0: yum-utils 4.10.1-bp160.1.7 Β· 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