.\" Man page generated from reStructuredText .\" by the Docutils 0.23 manpage writer. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "DNF5-DOWNLOAD" "8" "Sep 06, 2026" "" "dnf5" .SH NAME dnf5-download \- Download Command .SH SYNOPSIS .sp \fBdnf5 download [options] ...\fP .SH DESCRIPTION .sp The \fBdownload\fP command in \fBDNF5\fP is used for downloading binary and source packages defined in \fBpackage\-spec\-NPFB\fP arguments to the current working directory. .SH OPTIONS .INDENT 0.0 .TP .B \fB\-\-arch\fP .nf Limit to packages of given architectures. This option can be used multiple times. .fi .sp .TP .B \fB\-\-resolve\fP .nf Resolve dependencies of specified packages and download missing ones. .fi .sp .TP .B \fB\-\-alldeps\fP .nf To be used together with \fB\-\-resolve\fP, it downloads all dependencies, not skipping the already installed ones. .fi .sp .UNINDENT .INDENT 0.0 .TP .B \fB\-\-from\-repo=REPO_ID,...\fP .nf Packages (or their provides) explicitly specified on the command line will only be looked up in the specified repositories. These repositories are automatically enabled. Repository enabling and disabling still applies. Dependencies of these packages will be resolved from any enabled repository. .fi .sp .UNINDENT .INDENT 0.0 .TP .B \fB\-\-from\-vendor=VENDOR,...\fP .nf List of vendors separated by commas or spaces. Globs are supported (e.g., \fB\-\-from\-vendor=\(aqFedora\e project, vendorA, vendorB*, vendorC\(aq\fP). Packages (or their provides) explicitly specified on the command line will only be looked up from the specified vendors. The vendor change check is \fBbypassed\fP for these packages. The vendor is ignored or vendor change policies (if \fBallow_vendor_change=0\fP) will still be used for packages that satisfy dependencies. .fi .sp .UNINDENT .INDENT 0.0 .TP .B \fB\-\-destdir=\fP .nf Set directory used for downloading packages to. Default location is to the current working directory. .fi .sp .TP .B \fB\-\-skip\-unavailable\fP .nf Allow skipping packages that are not available in repositories. All available packages will be downloaded. .fi .sp .TP .B \fB\-\-srpm\fP .nf Download the source rpm. Enables source repositories of all enabled binary repositories. .fi .sp .TP .B \fB\-\-debuginfo\fP .nf Download the debuginfo rpm. Enables debuginfo repositories of all enabled binary repositories. .fi .sp .TP .B \fB\-\-debugsource\fP .nf Download the debugsource rpm. Enables debugsource repositories of all enabled binary repositories. .fi .sp .TP .B \fB\-\-url\fP .nf Prints the list of URLs where the rpms can be downloaded instead of downloading. .fi .sp .TP .B \fB\-\-urlprotocol\fP .nf 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. .fi .sp .TP .B \fB\-\-allmirrors\fP .nf To be used together with \fB\-\-url\fP\&. It prints out space\-separated URLs from all available mirrors for each package. .fi .sp .UNINDENT .SH EXAMPLES .INDENT 0.0 .TP .B \fBdnf5 download kernel\-headers\-0:5.17.0\-300.fc36.i686\fP .nf Download the \fBkernel\-headers\fP package using the full NEVRA format. .fi .sp .TP .B \fBdnf5 download rpm rpm\-devel\fP .nf Download all packages having the name of \fBrpm\fP or \fBrpm\-devel\fP\&. .fi .sp .TP .B \fBdnf5 download maven\-compiler\-plugin \-\-resolve \-\-alldeps\fP .nf Download the \fBmaven\-compiler\-plugin\fP package with all its dependencies. .fi .sp .TP .B \fBdnf5 download \-\-destdir /tmp/my_packages maven\-compiler\-plugin\fP .nf Download the \fBmaven\-compiler\-plugin\fP package to \fB/tmp/my_packages\fP directory. .fi .sp .TP .B \fBdnf5 download \-\-url \-\-urlprotocol http python\fP .nf List the http URL to download the python package. .fi .sp .TP .B \fBdnf5 download python \-\-arch x86_64\fP .nf Downloads python with the \fBx86_64\fP architecture. .fi .sp .TP .B \fBdnf5 download dnf5 \-\-srpm\fP .nf Download the \fBdnf5\fP source rpm. .fi .sp .TP .B \fBdnf5 download kernel \-\-debuginfo\fP .nf Download the \fBkernel\fP debuginfo rpm. .fi .sp .UNINDENT .SH SEE ALSO .INDENT 0.0 .INDENT 3.5 .nf \fBdnf5\-specs(7)\fP, Patterns specification \%<#\:specs-misc-ref-label> .fi .sp .UNINDENT .UNINDENT .SH Author See AUTHORS.md in dnf5 source distribution. .SH Copyright Contributors to the dnf5 project. .\" End of generated man page.