Debian Codegraph @

upstream/debian-unstable/man8/dnf4-modulesync.8

raw
1 .\" Man page generated from reStructuredText.
2 .
3 .
4 .nr rst2man-indent-level 0
5 .
6 .de1 rstReportMargin
7 \\$1 \\n[an-margin]
8 level \\n[rst2man-indent-level]
9 level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
10 -
11 \\n[rst2man-indent0]
12 \\n[rst2man-indent1]
13 \\n[rst2man-indent2]
14 ..
15 .de1 INDENT
16 .\" .rstReportMargin pre:
17 . RS \\$1
18 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
19 . nr rst2man-indent-level +1
20 .\" .rstReportMargin post:
21 ..
22 .de UNINDENT
23 . RE
24 .\" indent \\n[an-margin]
25 .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
26 .nr rst2man-indent-level -1
27 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
28 .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
29 ..
30 .TH "DNF4-MODULESYNC" "8" "Sep 27, 2025" "4.10.1" "dnf-plugins-core"
31 .SH NAME
32 dnf4-modulesync \- DNF modulesync Plugin
33 .sp
34 Download packages from modules and/or create a repository with modular data.
35 .SH SYNOPSIS
36 .sp
37 \fBdnf modulesync [options] [<module\-spec>...]\fP
38 .SH DESCRIPTION
39 .sp
40 \fImodulesync\fP downloads packages from modules according to provided arguments and creates a repository with modular data
41 in working directory. In environment with modules it is recommend to use the command for redistribution of packages,
42 because DNF does not allow installation of modular packages without modular metadata on the system (Fail\-safe
43 mechanism). The command without an argument creates a repository like \fIcreaterepo_c\fP but with modular metadata collected
44 from all available repositories.
45 .sp
46 See examples.
47 .SH ARGUMENTS
48 .INDENT 0.0
49 .TP
50 .B \fB<module\-spec>\fP
51 Module specification for the package to download. The argument is an optional.
52 .UNINDENT
53 .SH OPTIONS
54 .sp
55 All general DNF options are accepted. Namely, the \fB\-\-destdir\fP option can be used to specify directory where packages
56 will be downloaded and the new repository created. See \fIOptions\fP in \fBdnf(8)\fP for details.
57 .INDENT 0.0
58 .TP
59 .B \fB\-n, \-\-newest\-only\fP
60 Download only packages from the newest modules.
61 .TP
62 .B \fB\-\-enable_source_repos\fP
63 Enable repositories with source packages
64 .TP
65 .B \fB\-\-enable_debug_repos\fP
66 Enable repositories with debug\-info and debug\-source packages
67 .TP
68 .B \fB\-\-resolve\fP
69 Resolve and download needed dependencies
70 .UNINDENT
71 .SH EXAMPLES
72 .INDENT 0.0
73 .TP
74 .B \fBdnf modulesync nodejs\fP
75 Download packages from \fInodejs\fP module and crete a repository with modular metadata in working directory
76 .UNINDENT
77 .sp
78 \fBdnf download nodejs\fP
79 .INDENT 0.0
80 .TP
81 .B \fBdnf modulesync\fP
82 The first \fIdownload\fP command downloads nodejs package into working directory. In environment with modules \fInodejs\fP
83 package can be a modular package therefore when I create a repository I have to insert also modular metadata
84 from available repositories to ensure 100% functionality. Instead of \fIcreaterepo_c\fP use \fIdnf modulesync\fP
85 to create a repository in working directory with nodejs package and modular metadata.
86 .TP
87 .B \fBdnf \-\-destdir=/tmp/my\-temp modulesync nodejs:14/minimal \-\-resolve\fP
88 Download package required for installation of \fIminimal\fP profile from module \fInodejs\fP and stream \fI14\fP into directory
89 \fI/tmp/my\-temp\fP and all required dependencies. Then it will create a repository in \fI/tmp/my\-temp\fP directory with
90 previously downloaded packages and modular metadata from all available repositories.
91 .UNINDENT
92 .sp
93 \fBdnf module install nodejs:14/minimal \-\-downloadonly \-\-destdir=/tmp/my\-temp\fP
94 .INDENT 0.0
95 .TP
96 .B \fBdnf modulesync \-\-destdir=/tmp/my\-temp\fP
97 The first \fIdnf module install\fP command downloads package from required for installation of \fIminimal\fP profile from module
98 \fInodejs\fP and stream \fI14\fP into directory \fI/tmp/my\-temp\fP\&. The second command \fIdnf modulesync\fP will create
99 a repository in \fI/tmp/my\-temp\fP directory with previously downloaded packages and modular metadata from all
100 available repositories. In comparison to \fIdnf –destdir=/tmp/my\-temp modulesync nodejs:14/minimal –resolve\fP it will
101 only download packages required for installation on current system.
102 .UNINDENT
103 .SH SEE ALSO
104 .INDENT 0.0
105 .IP \(bu 2
106 \fBdnf(8)\fP, DNF Command Reference
107 .UNINDENT
108 .SH AUTHOR
109 See AUTHORS in your Core DNF Plugins distribution
110 .SH COPYRIGHT
111 2014, Red Hat, Licensed under GPLv2+
112 .\" Generated by docutils manpage writer.
113 .