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       -p <download-path>, --download-path=<download-path>
23              Root path under which the downloaded  repositories  are  stored,
24              relative  to the current working directory. Defaults to the cur‐
25              rent working directory. Every downloaded repository has a subdi‐
26              rectory named after its ID under this path.
27
28       --norepopath
29              Don't  add  the  reponame to the download path. Can only be used
30              when syncing a single repository (default is to add  the  repon‐
31              ame).
32
33       --download-metadata
34              Download  all  repository metadata. Downloaded copy is instantly
35              usable as a repository, no need to run createrepo_c on it.
36
37       -a <architecture>, --arch=<architecture>
38              Download only packages of given architectures  (default  is  all
39              architectures). Can be used multiple times.
40
41       --source
42              Operate on source packages.
43
44       -m, --downloadcomps
45              Also  download  and uncompress comps.xml. Consider using --down‐
46              load-metadata option which will download all  available  reposi‐
47              tory metadata.
48
49       -n, --newest-only
50              Download only newest packages per-repo.
51
52       --delete
53              Delete local packages no longer present in repository.
54
55       --metadata-path
56              Root  path  under  which  the downloaded metadata are stored. It
57              defaults to --download-path value if not given.
58
59       --remote-time
60              Try to set the timestamps of the downloaded files  to  those  on
61              the remote side.
62
63       -u, --urls
64              Just print urls of what would be downloaded, don't download.
65

EXAMPLES

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

SEE ALSO

88       · dnf(8), DNF Command Reference
89

AUTHOR

91       See AUTHORS in your Core DNF Plugins distribution
92
94       2020, Red Hat, Licensed under GPLv2+
95
96
97
98
994.0.15                           Apr 08, 2020                      REPOSYNC(1)
Impressum