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

NAME

6       dnf-reposync - 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.  When
32              the option is used with --newest-only, only latest packages will
33              be downloaded, but metadata will still contain  older  packages.
34              It  might  be useful to update metadata using createrepo_c --up‐
35              date to remove the packages with missing RPM  files  from  meta‐
36              data. Otherwise, DNF ends with an error due to the missing files
37              whenever it tries to download older packages.
38
39       -g, --gpgcheck
40              Remove packages that fail GPG signature checking after download‐
41              ing.  Exit  code is 1 if at least one package was removed.  Note
42              that for repositories with gpgcheck=0 set in their configuration
43              the GPG signature is not checked even with this option used.
44
45       -m, --downloadcomps
46              Also  download  and uncompress comps.xml. Consider using --down‐
47              load-metadata option which will download all  available  reposi‐
48              tory metadata.
49
50       --metadata-path
51              Root path under which the downloaded metadata are stored. It de‐
52              faults to --download-path value if not given.
53
54       -n, --newest-only
55              Download only newest packages per-repo.
56
57       --norepopath
58              Don't add the reponame to the download path. Can  only  be  used
59              when  syncing  a single repository (default is to add the repon‐
60              ame).
61
62       -p <download-path>, --download-path=<download-path>
63              Root path under which the downloaded  repositories  are  stored,
64              relative  to the current working directory. Defaults to the cur‐
65              rent working directory. Every downloaded repository has a subdi‐
66              rectory named after its ID under this path.
67
68       --safe-write-path
69              Specify  the  filesystem path prefix under which the reposync is
70              allowed to write. If not specified it defaults to download  path
71              of the repository. Useful for repositories that use relative lo‐
72              cations of packages out of repository directory (e.g.  "../pack‐
73              ages_store/foo.rpm").   Use   with  care,  any  file  under  the
74              safe-write-path can be overwritten. Can be only used when  sync‐
75              ing a single repository.
76
77       --remote-time
78              Try  to  set  the timestamps of the downloaded files to those on
79              the remote side.
80
81       --source
82              Download only source packages.
83
84       -u, --urls
85              Just print urls of what would be downloaded, don't download.
86

EXAMPLES

88       dnf reposync --repoid=the_repo
89              Synchronize all packages from the repository with id "the_repo".
90              The synchronized copy is saved in "the_repo" subdirectory of the
91              current working directory.
92
93       dnf reposync -p /my/repos/path --repoid=the_repo
94              Synchronize all packages from the repository with id "the_repo".
95              In this case files are saved in "/my/repos/path/the_repo" direc‐
96              tory.
97
98       dnf reposync --repoid=the_repo --download-metadata
99              Synchronize all packages and metadata  from  "the_repo"  reposi‐
100              tory.
101
102       Repository synchronized with --download-metadata option can be directly
103       used in DNF for example by using --repofrompath option:
104
105       dnf   --repofrompath=syncedrepo,the_repo    --repoid=syncedrepo    list
106       --available
107

SEE ALSO

109dnf(8), DNF Command Reference
110

AUTHOR

112       See AUTHORS in your Core DNF Plugins distribution
113
115       2023, Red Hat, Licensed under GPLv2+
116
117
118
119
1204.4.3                            Oct 06, 2023                  DNF-REPOSYNC(8)
Impressum