Bug 1260279 - DNF does not include a download-only option
Summary: DNF does not include a download-only option
Keywords:
Status: CLOSED DUPLICATE of bug 1048433
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 22
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-09-05 12:46 UTC by Jason H.
Modified: 2015-09-07 09:14 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-09-07 09:14:08 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jason H. 2015-09-05 12:46:56 UTC
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"
2.
3.

Actual results:
No match for argument: --downloadonly

Expected results:
DNF will download packages to cache.

Additional info:

Comment 1 Radek Holy 2015-09-07 09:14:08 UTC
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 ***


Note You need to log in before you can comment on or make changes to this bug.