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

NAME

6       dnf-modulesync - DNF modulesync Plugin
7
8       Download  packages from modules and/or create a repository with modular
9       data.
10

SYNOPSIS

12       dnf modulesync [options] [<module-spec>...]
13

DESCRIPTION

15       modulesync downloads packages from modules according to provided  argu‐
16       ments  and creates a repository with modular data in working directory.
17       In environment with modules it is recommend to use the command for  re‐
18       distribution  of  packages,  because DNF does not allow installation of
19       modular packages without modular  metadata  on  the  system  (Fail-safe
20       mechanism).  The  command without an argument creates a repository like
21       createrepo_c but with modular metadata  collected  from  all  available
22       repositories.
23
24       See examples.
25

ARGUMENTS

27       <module-spec>
28              Module  specification  for the package to download. The argument
29              is an optional.
30

OPTIONS

32       All general DNF options are accepted. Namely, the --destdir option  can
33       be  used to specify directory where packages will be downloaded and the
34       new repository created. See Options in dnf(8) for details.
35
36       -n, --newest-only
37              Download only packages from the newest modules.
38
39       --enable_source_repos
40              Enable repositories with source packages
41
42       --enable_debug_repos
43              Enable repositories with debug-info and debug-source packages
44
45       --resolve
46              Resolve and download needed dependencies
47

EXAMPLES

49       dnf modulesync nodejs
50              Download packages from nodejs module and crete a repository with
51              modular metadata in working directory
52
53       dnf download nodejs
54
55       dnf modulesync
56              The first download command downloads nodejs package into working
57              directory. In environment with modules nodejs package can  be  a
58              modular  package  therefore when I create a repository I have to
59              insert also modular metadata from available repositories to  en‐
60              sure  100%  functionality.  Instead of createrepo_c use dnf mod‐
61              ulesync to create a repository in working directory with  nodejs
62              package and modular metadata.
63
64       dnf --destdir=/tmp/my-temp modulesync nodejs:14/minimal --resolve
65              Download  package  required  for installation of minimal profile
66              from module nodejs and stream 14 into directory /tmp/my-temp and
67              all  required  dependencies. Then it will create a repository in
68              /tmp/my-temp directory with previously downloaded  packages  and
69              modular metadata from all available repositories.
70
71       dnf    module    install   nodejs:14/minimal   --downloadonly   --dest‐
72       dir=/tmp/my-temp
73
74       dnf modulesync --destdir=/tmp/my-temp
75              The first dnf module install command downloads package from  re‐
76              quired  for  installation  of minimal profile from module nodejs
77              and stream 14 into directory /tmp/my-temp.  The  second  command
78              dnf  modulesync  will create a repository in /tmp/my-temp direc‐
79              tory with previously downloaded packages  and  modular  metadata
80              from  all  available  repositories. In comparison to dnf --dest‐
81              dir=/tmp/my-temp modulesync nodejs:14/minimal --resolve it  will
82              only download packages required for installation on current sys‐
83              tem.
84

SEE ALSO

86dnf(8), DNF Command Reference
87

AUTHOR

89       See AUTHORS in your Core DNF Plugins distribution
90
92       2022, Red Hat, Licensed under GPLv2+
93
94
95
96
974.3.1                            Sep 23, 2022                DNF-MODULESYNC(8)
Impressum