Scroll to navigation

DNF5-DOWNLOAD(8) dnf5 DNF5-DOWNLOAD(8)

NAME

dnf5-download - Download Command

SYNOPSIS

dnf5 download [options] <package-spec-NPFB>...

DESCRIPTION

The download command in DNF5 is used for downloading binary and source packages defined in package-spec-NPFB arguments to the current working directory.

OPTIONS

Limit to packages of given architectures. This option can be used multiple times.

Resolve dependencies of specified packages and download missing ones.

To be used together with --resolve, it downloads all dependencies, not skipping the already installed ones.


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.


List of vendors separated by commas or spaces. Globs are supported (e.g., --from-vendor='Fedora\ project, vendorA, vendorB*, vendorC').
Packages (or their provides) explicitly specified on the command line will only be looked up from the specified vendors.
The vendor change check is bypassed for these packages.
The vendor is ignored or vendor change policies (if allow_vendor_change=0) will still be used for packages that satisfy dependencies.


Set directory used for downloading packages to. Default location is to the current working directory.

Allow skipping packages that are not available in repositories. All available packages will be downloaded.

Download the source rpm. Enables source repositories of all enabled binary repositories.

Download the debuginfo rpm. Enables debuginfo repositories of all enabled binary repositories.

Download the debugsource rpm. Enables debugsource repositories of all enabled binary repositories.

Prints the list of URLs where the rpms can be downloaded instead of downloading.

To be used together with --url. It filters out the URLs to the specified protocols: http, https, ftp, or file. This option can be used multiple times.

To be used together with --url. It prints out space-separated URLs from all available mirrors for each package.


EXAMPLES

Download the kernel-headers package using the full NEVRA format.

Download all packages having the name of rpm or rpm-devel.

Download the maven-compiler-plugin package with all its dependencies.

Download the maven-compiler-plugin package to /tmp/my_packages directory.

List the http URL to download the python package.

Downloads python with the x86_64 architecture.

Download the dnf5 source rpm.

Download the kernel debuginfo rpm.


SEE ALSO

dnf5-specs(7), Patterns specification <#specs-misc-ref-label>



Author

See AUTHORS.md in dnf5 source distribution.

Copyright

Contributors to the dnf5 project.

February 19, 2026