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       --download-metadata
29              Download  all  repository metadata. Downloaded copy is instantly
30              usable as a repository, no need to run createrepo_c on it.
31
32       -a <architecture>, --arch=<architecture>
33              Download only packages of given architectures  (default  is  all
34              architectures). Can be used multiple times.
35
36       --source
37              Operate on source packages.
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       -n, --newest-only
45              Download only newest packages per-repo.
46
47       --delete
48              Delete local packages no longer present in repository.
49
50       --metadata-path
51              Root  path  under  which  the downloaded metadata are stored. It
52              defaults to --download-path value if not given.
53
54       --remote-time
55              Try to set the timestamps of the downloaded files  to  those  on
56              the remote side.
57
58       -u, --urls
59              Just print urls of what would be downloaded, don't download.
60

EXAMPLES

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

SEE ALSO

83       · dnf(8), DNF Command Reference
84

AUTHOR

86       See AUTHORS in your Core DNF Plugins distribution
87
89       2019, Red Hat, Licensed under GPLv2+
90
91
92
93
944.0.12                           Nov 29, 2019                      REPOSYNC(1)
Impressum