DNF4-DOWNLOAD(8)

✨ DNF4-DOWNLOAD β€” the manual page, but make it cute ✨

okay so bestie, you're holding the manual for dnf4-download, which lives in the dnf-plugins-core family πŸŽ€. It's the DNF download Plugin, and honestly? It does exactly what it says on the tin: it downloads binary or source packages. no cap πŸ’…


🌸 NAME 🌸

dnf4-download β€” the DNF download Plugin.

Download binary or source packages. that's it, that's the whole job, and it slays at it 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

dnf download [options] <pkg-spec>...

πŸ’– ARGUMENTS πŸ’–

  • <pkg-spec> β€” the package specification for the package you wanna download. Local RPMs can be specified as well!! Which is genuinely so useful when you're rolling with the --source option, or when you just wanna download the exact same RPM again πŸ”

✨ OPTIONS ✨

every general DNF option is accepted too, so peek at Options in dnf(8) for the details, iykyk πŸ“–

  • --help-cmd β€” show this help. classic πŸŽ€
  • --arch <arch>[,<arch>...] β€” limits the query to packages of the given architectures. default is all compatible architectures with your system. and listen, if you wanna download packages whose arch is incompatible with your system? you use the --forcearch=<arch> option to change basearch. periodt πŸ’…
  • --source β€” downloads the source rpm. it enables the source repositories of all enabled binary repositories 🌈
  • --debuginfo β€” downloads the debuginfo rpm. it enables the debuginfo repositories of all enabled binary repositories 🧚
  • --downloaddir β€” the download directory. default is the current directory β€” and heads up bestie, the directory must exist 🫠
  • --url β€” instead of actually downloading, it prints the list of urls where the rpms can be downloaded. window shopping, iconic behavior πŸ‘‘
  • --urlprotocol β€” limits the protocol of the urls output by the –url option. the options are http, https, rsync, ftp. pick your fighter 🎯
  • --resolve β€” resolves dependencies of the specified packages and downloads the missing dependencies in the system. the way it goes and fetches the whole friend group 😭
  • --alldeps β€” when used with --resolve, download all dependencies (do not skip the already-installed ones). go big or go home fr fr πŸ”₯

🌟 EXAMPLES 🌟

okay this is the part where it gets real, let's go πŸŽ‰


dnf download dnf

Download the latest dnf package to the current directory.


dnf download --url dnf

Just print the remote location url where the dnf rpm can be downloaded from.


dnf download --url --urlprotocols=https --urlprotocols=rsync dnf

Same as above, but limit urls to https or rsync urls.


dnf download dnf --destdir /tmp/dnl

Download the latest dnf package to the /tmp/dnl directory (the directory must exist, don't forget πŸ’€).


dnf download dnf --source

Download the latest dnf source package to the current directory.


dnf download rpm --debuginfo

Download the latest rpm-debuginfo package to the current directory.


dnf download btanks --resolve

Download the latest btanks package and the uninstalled dependencies to the current directory.


🌈 Author 🌈

See AUTHORS in your Core DNF Plugins distribution 🫢


2014, Red Hat, Licensed under GPLv2+


πŸ’Œ and that's the whole thing, bestie!! this page is version 4.10.1, dated Sep 27, 2025, brought to you by the dnf-plugins-core girlies. now go download something iconic πŸŒΈβœ¨πŸ‘‘
πŸ“¦ where this page comes from