Red Hat Bugzilla – Bug 1260279
DNF does not include a download-only option
Last modified: 2015-09-07 05:14:08 EDT
Description of problem: yum has a -w or --downloadonly option to download any packages to be installed or updated. DNF does have a download command, they are different. The command "yum --downloadonly update" will download and stage all updates to their proper directories in /var/cache, while "dnf download" behaves more like "yumdownloader", which puts all downloads into the current directory, reguardless of repository.
I use the "yum --downloadonly" command frequently to download updates while the computer is in use, then apply them when the computer is shutting down or restarting (via custom SystemD script).
Version-Release number of selected component (if applicable): dnf-1.1.0-2.fc22.noarch
How reproducible: Always
Steps to Reproduce:
1. Run "dnf --downloadonly update"
No match for argument: --downloadonly
DNF will download packages to cache.
Hello, this is a duplicate.
You might be also interested in using dnf-automatic configured to download the updates (https://bugzilla.redhat.com/show_bug.cgi?id=1048433#c14).
*** This bug has been marked as a duplicate of bug 1048433 ***