Debian Codegraph @

upstream/mageia-cauldron/man8/dnf5-download.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 "DNF5-DOWNLOAD" "8" "May 10, 2026" "" "dnf5"
31 .SH NAME
32 dnf5-download \- Download Command
33 .SH SYNOPSIS
34 .sp
35 \fBdnf5 download [options] <package\-spec\-NPFB>...\fP
36 .SH DESCRIPTION
37 .sp
38 The \fBdownload\fP command in \fBDNF5\fP is used for downloading binary and source packages
39 defined in \fBpackage\-spec\-NPFB\fP arguments to the current working directory.
40 .SH OPTIONS
41 .INDENT 0.0
42 .TP
43 .B \fB\-\-arch\fP
44 .nf
45 Limit to packages of given architectures. This option can be used multiple times.
46 .fi
47 .sp
48 .TP
49 .B \fB\-\-resolve\fP
50 .nf
51 Resolve dependencies of specified packages and download missing ones.
52 .fi
53 .sp
54 .TP
55 .B \fB\-\-alldeps\fP
56 .nf
57 To be used together with \fB\-\-resolve\fP, it downloads all dependencies, not skipping the already installed ones.
58 .fi
59 .sp
60 .UNINDENT
61 .INDENT 0.0
62 .TP
63 .B \fB\-\-from\-repo=REPO_ID,...\fP
64 .nf
65 Packages (or their provides) explicitly specified on the command line will only be looked up in the specified repositories.
66 These repositories are automatically enabled.
67 Repository enabling and disabling still applies. Dependencies of these packages will be resolved from any enabled repository.
68 .fi
69 .sp
70 .UNINDENT
71 .INDENT 0.0
72 .TP
73 .B \fB\-\-from\-vendor=VENDOR,...\fP
74 .nf
75 List of vendors separated by commas or spaces. Globs are supported (e.g., \fB\-\-from\-vendor=\(aqFedora\e project, vendorA, vendorB*, vendorC\(aq\fP).
76 Packages (or their provides) explicitly specified on the command line will only be looked up from the specified vendors.
77 The vendor change check is \fBbypassed\fP for these packages.
78 The vendor is ignored or vendor change policies (if \fBallow_vendor_change=0\fP) will still be used for packages that satisfy dependencies.
79 .fi
80 .sp
81 .UNINDENT
82 .INDENT 0.0
83 .TP
84 .B \fB\-\-destdir=<path>\fP
85 .nf
86 Set directory used for downloading packages to. Default location is to the current working directory.
87 .fi
88 .sp
89 .TP
90 .B \fB\-\-skip\-unavailable\fP
91 .nf
92 Allow skipping packages that are not available in repositories. All available packages will be downloaded.
93 .fi
94 .sp
95 .TP
96 .B \fB\-\-srpm\fP
97 .nf
98 Download the source rpm. Enables source repositories of all enabled binary repositories.
99 .fi
100 .sp
101 .TP
102 .B \fB\-\-debuginfo\fP
103 .nf
104 Download the debuginfo rpm. Enables debuginfo repositories of all enabled binary repositories.
105 .fi
106 .sp
107 .TP
108 .B \fB\-\-debugsource\fP
109 .nf
110 Download the debugsource rpm. Enables debugsource repositories of all enabled binary repositories.
111 .fi
112 .sp
113 .TP
114 .B \fB\-\-url\fP
115 .nf
116 Prints the list of URLs where the rpms can be downloaded instead of downloading.
117 .fi
118 .sp
119 .TP
120 .B \fB\-\-urlprotocol\fP
121 .nf
122 To be used together with \fB\-\-url\fP\&. It filters out the URLs to the specified protocols: \fBhttp\fP, \fBhttps\fP, \fBftp\fP, or \fBfile\fP\&. This option can be used multiple times.
123 .fi
124 .sp
125 .TP
126 .B \fB\-\-allmirrors\fP
127 .nf
128 To be used together with \fB\-\-url\fP\&. It prints out space\-separated URLs from all available mirrors for each package.
129 .fi
130 .sp
131 .UNINDENT
132 .SH EXAMPLES
133 .INDENT 0.0
134 .TP
135 .B \fBdnf5 download kernel\-headers\-0:5.17.0\-300.fc36.i686\fP
136 .nf
137 Download the \fBkernel\-headers\fP package using the full NEVRA format.
138 .fi
139 .sp
140 .TP
141 .B \fBdnf5 download rpm rpm\-devel\fP
142 .nf
143 Download all packages having the name of \fBrpm\fP or \fBrpm\-devel\fP\&.
144 .fi
145 .sp
146 .TP
147 .B \fBdnf5 download maven\-compiler\-plugin \-\-resolve \-\-alldeps\fP
148 .nf
149 Download the \fBmaven\-compiler\-plugin\fP package with all its dependencies.
150 .fi
151 .sp
152 .TP
153 .B \fBdnf5 download \-\-destdir /tmp/my_packages maven\-compiler\-plugin\fP
154 .nf
155 Download the \fBmaven\-compiler\-plugin\fP package to \fB/tmp/my_packages\fP directory.
156 .fi
157 .sp
158 .TP
159 .B \fBdnf5 download \-\-url \-\-urlprotocol http python\fP
160 .nf
161 List the http URL to download the python package.
162 .fi
163 .sp
164 .TP
165 .B \fBdnf5 download python \-\-arch x86_64\fP
166 .nf
167 Downloads python with the \fBx86_64\fP architecture.
168 .fi
169 .sp
170 .TP
171 .B \fBdnf5 download dnf5 \-\-srpm\fP
172 .nf
173 Download the \fBdnf5\fP source rpm.
174 .fi
175 .sp
176 .TP
177 .B \fBdnf5 download kernel \-\-debuginfo\fP
178 .nf
179 Download the \fBkernel\fP debuginfo rpm.
180 .fi
181 .sp
182 .UNINDENT
183 .SH SEE ALSO
184 .INDENT 0.0
185 .INDENT 3.5
186 .nf
187 \fBdnf5\-specs(7)\fP, \fI\%Patterns specification\fP
188 .fi
189 .sp
190 .UNINDENT
191 .UNINDENT
192 .SH AUTHOR
193 See AUTHORS.md in dnf5 source distribution.
194 .SH COPYRIGHT
195 Contributors to the dnf5 project.
196 .\" Generated by docutils manpage writer.
197 .