1REPOSYNC(1)                    dnf-plugins-core                    REPOSYNC(1)
2
3
4

NAME

6       reposync - redirecting to DNF reposync Plugin
7
8       Synchronize packages of a remote DNF repository to a local directory.
9

SYNOPSIS

11       dnf reposync [options]
12

DESCRIPTION

14       reposync  makes  local copies of remote repositories. Packages that are
15       already present in the local directory are not downloaded again.
16

OPTIONS

18       All general DNF options are accepted. Namely, the --repoid  option  can
19       be  used  to  specify  the  repositories to synchronize. See Options in
20       dnf(8) for details.
21
22       -a <architecture>, --arch=<architecture>
23              Download only packages of given architectures  (default  is  all
24              architectures). Can be used multiple times.
25
26       --delete
27              Delete local packages no longer present in repository.
28
29       --download-metadata
30              Download  all  repository metadata. Downloaded copy is instantly
31              usable as a repository, no need to run createrepo_c on it.
32
33       -g, --gpgcheck
34              Remove packages that fail GPG signature checking after download‐
35              ing.  Exit  code is 1 if at least one package was removed.  Note
36              that for repositories with gpgcheck=0 set in their configuration
37              the GPG signature is not checked even with this option used.
38
39       -m, --downloadcomps
40              Also  download  and uncompress comps.xml. Consider using --down‐
41              load-metadata option which will download all  available  reposi‐
42              tory metadata.
43
44       --metadata-path
45              Root path under which the downloaded metadata are stored. It de‐
46              faults to --download-path value if not given.
47
48       -n, --newest-only
49              Download only newest packages per-repo.
50
51       --norepopath
52              Don't add the reponame to the download path. Can  only  be  used
53              when  syncing  a single repository (default is to add the repon‐
54              ame).
55
56       -p <download-path>, --download-path=<download-path>
57              Root path under which the downloaded  repositories  are  stored,
58              relative  to the current working directory. Defaults to the cur‐
59              rent working directory. Every downloaded repository has a subdi‐
60              rectory named after its ID under this path.
61
62       --remote-time
63              Try  to  set  the timestamps of the downloaded files to those on
64              the remote side.
65
66       --source
67              Download only source packages.
68
69       -u, --urls
70              Just print urls of what would be downloaded, don't download.
71

EXAMPLES

73       dnf reposync --repoid=the_repo
74              Synchronize all packages from the repository with id "the_repo".
75              The synchronized copy is saved in "the_repo" subdirectory of the
76              current working directory.
77
78       dnf reposync -p /my/repos/path --repoid=the_repo
79              Synchronize all packages from the repository with id "the_repo".
80              In this case files are saved in "/my/repos/path/the_repo" direc‐
81              tory.
82
83       dnf reposync --repoid=the_repo --download-metadata
84              Synchronize all packages and metadata  from  "the_repo"  reposi‐
85              tory.
86
87       Repository synchronized with --download-metadata option can be directly
88       used in DNF for example by using --repofrompath option:
89
90       dnf   --repofrompath=syncedrepo,the_repo    --repoid=syncedrepo    list
91       --available
92

SEE ALSO

94dnf(8), DNF Command Reference
95

AUTHOR

97       See AUTHORS in your Core DNF Plugins distribution
98
100       2021, Red Hat, Licensed under GPLv2+
101
102
103
104
1054.0.21                           May 13, 2021                      REPOSYNC(1)
Impressum