{"id":2664,"date":"2022-12-20T15:16:59","date_gmt":"2022-12-20T18:16:59","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/dnf-reposync-man8\/"},"modified":"2022-12-20T15:16:59","modified_gmt":"2022-12-20T18:16:59","slug":"dnf-reposync-man8","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/dnf-reposync-man8\/","title":{"rendered":"DNF-REPOSYNC (man8)"},"content":{"rendered":"<h1 align=\"center\">DNF-REPOSYNC<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#OPTIONS\">OPTIONS<\/a><br \/> <a href=\"#EXAMPLES\">EXAMPLES<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#AUTHOR\">AUTHOR<\/a><br \/> <a href=\"#COPYRIGHT\">COPYRIGHT<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">dnf-reposync \u2212 DNF reposync Plugin<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Synchronize packages of a remote DNF repository to a local directory.<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>dnf reposync [options]<\/b><\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b><i>reposync<\/i><\/b> makes local copies of remote repositories. Packages that are already present in the local directory are not downloaded again.<\/p>\n<h2>OPTIONS <a name=\"OPTIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">All general DNF options are accepted. Namely, the <b>\u2212\u2212repoid<\/b> option can be used to specify the repositories to synchronize. See <i>Options<\/i> in <b>dnf(8)<\/b> for details. <b><br \/> \u2212a <architecture>, \u2212\u2212arch=<architecture><\/b><\/p>\n<p style=\"margin-left:22%;\">Download only packages of given architectures (default is all architectures). Can be used multiple times.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212\u2212delete<\/b><\/p>\n<p style=\"margin-left:22%;\">Delete local packages no longer present in repository.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212\u2212download\u2212metadata<\/b><\/p>\n<p style=\"margin-left:22%;\">Download all repository metadata. Downloaded copy is instantly usable as a repository, no need to run createrepo_c on it.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212g, \u2212\u2212gpgcheck<\/b><\/p>\n<p style=\"margin-left:22%;\">Remove packages that fail GPG signature checking after downloading. Exit code is <b>1<\/b> if at least one package was removed. Note that for repositories with <b>gpgcheck=0<\/b> set in their configuration the GPG signature is not checked even with this option used.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212m, \u2212\u2212downloadcomps<\/b><\/p>\n<p style=\"margin-left:22%;\">Also download and uncompress comps.xml. Consider using <b>\u2212\u2212download\u2212metadata<\/b> option which will download all available repository metadata.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212\u2212metadata\u2212path<\/b><\/p>\n<p style=\"margin-left:22%;\">Root path under which the downloaded metadata are stored. It defaults to <b>\u2212\u2212download\u2212path<\/b> value if not given.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212n, \u2212\u2212newest\u2212only<\/b><\/p>\n<p style=\"margin-left:22%;\">Download only newest packages per\u2212repo.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212\u2212norepopath<\/b><\/p>\n<p style=\"margin-left:22%;\">Don&#8217;t add the reponame to the download path. Can only be used when syncing a single repository (default is to add the reponame).<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212p <download\u2212path>, \u2212\u2212download\u2212path=<download\u2212path><\/b><\/p>\n<p style=\"margin-left:22%;\">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.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212\u2212remote\u2212time<\/b><\/p>\n<p style=\"margin-left:22%;\">Try to set the timestamps of the downloaded files to those on the remote side.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212\u2212source<\/b><\/p>\n<p style=\"margin-left:22%;\">Operate on source packages.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212u, \u2212\u2212urls<\/b><\/p>\n<p style=\"margin-left:22%;\">Just print urls of what would be downloaded, don&#8217;t download.<\/p>\n<h2>EXAMPLES <a name=\"EXAMPLES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>dnf reposync \u2212\u2212repoid=the_repo<\/b><\/p>\n<p style=\"margin-left:22%;\">Synchronize all packages from the repository with id &#8220;the_repo&#8221;. The synchronized copy is saved in &#8220;the_repo&#8221; subdirectory of the current working directory.<\/p>\n<p style=\"margin-left:11%;\"><b>dnf reposync \u2212p \/my\/repos\/path \u2212\u2212repoid=the_repo<\/b><\/p>\n<p style=\"margin-left:22%;\">Synchronize all packages from the repository with id &#8220;the_repo&#8221;. In this case files are saved in &#8220;\/my\/repos\/path\/the_repo&#8221; directory.<\/p>\n<p style=\"margin-left:11%;\"><b>dnf reposync \u2212\u2212repoid=the_repo \u2212\u2212download\u2212metadata<\/b><\/p>\n<p style=\"margin-left:22%;\">Synchronize all packages and metadata from &#8220;the_repo&#8221; repository.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Repository synchronized with <b>\u2212\u2212download\u2212metadata<\/b> option can be directly used in DNF for example by using <b>\u2212\u2212repofrompath<\/b> option:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>dnf \u2212\u2212repofrompath=syncedrepo,the_repo \u2212\u2212repoid=syncedrepo list \u2212\u2212available<\/b><\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p style=\"margin-top: 1em\">\u2022<\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"44%\">\n<p style=\"margin-top: 1em\"><b>dnf(8)<\/b>, DNF Command Reference<\/p>\n<\/td>\n<td width=\"42%\"> <\/td>\n<\/tr>\n<\/table>\n<h2>AUTHOR <a name=\"AUTHOR\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">See AUTHORS in your Core DNF Plugins distribution<\/p>\n<h2>COPYRIGHT <a name=\"COPYRIGHT\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">2014, Red Hat, Licensed under GPLv2+<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  dnf-reposync \u2212 DNF reposync Plugin Synchronize packages of a remote DNF repository to a local directory. <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[5,52,12,4],"class_list":["post-2664","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-dnf-reposync","tag-man8"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/2664","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=2664"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/2664\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=2664"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=2664"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=2664"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}