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