Bug 1241217
Summary: | dnf lacks a method to merely download updates | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Chris Siebenmann <cks-rhbugzilla> |
Component: | dnf | Assignee: | Packaging Maintenance Team <packaging-team-maint> |
Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 22 | CC: | jsilhan, mluscon, packaging-team-maint, pnemade, rholy, tim.lauridsen, vmukhame |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-07-10 13:08:20 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Chris Siebenmann
2015-07-08 18:26:04 UTC
Hello, what about dnf-automatic? I know that in your case, the name is not very intuitive but I believe that it provides everything you need. dnf-automatic appears to lacks an equivalent to --releasever, which is important for the case of upgrading Fedora versions via yum/dnf (where I want to do the dnf equivalent of 'yum --releasever N --downloadonly distro-sync'). (When I filed this originally, I forgot that 'yum upgrade' wasn't the only case for --downloadonly; distro-sync needs it too.) In general dnf-automatic feels like an awkward way to get this. For what used to be a straightforward use-any-time command line option, you now have to set up a configuration file and then run dnf-automatic by hand. You also don't get any selectivity about what packages to download; in past versions of Fedora I've not infrequently done: yum upgrade --downloadonly <annoying-package> [stop whatever necessary thing] yum upgrade <annoying-package> to just do this split processing for a single annoying package even when there are updates to multiple packages pending. And of course this means you can't do the equivalent of eg: yum upgrade --downloadonly --exclude 'kernel*' yum upgrade --exclude 'kernel*' With dnf-automatic in this scenario, at a minimum you're going to download and then throw away the excluded packages (dnf-automatic will download them, you'll do 'dnf upgrade --exclude ...', and then either they'll get auto-deleted or you'll purge them). Given that the actual code seems likely to be small (given how small dnf-automatic's Python code is itself), I really think that upgrade and distro-sync should just regain the '--downloadonly' option or an equivalent. It's the simplest way to cover a lot of usage cases and interactions with other plugins and so on. I agree with everything you said. Also I can imagine one would want to perform "dnf --downloadonly downgrade foo" or "dnf --downloadonly install foo". Yes, that's a good point about downgrade; that can have the same sort of instability issues. And one might as well cover install as well just in case (I'm sure someone's using it). Let me track the request in the bug 1048433 where the --downloadonly switch was requested first. Both of you want to download the packages in advance. You will install them on the same machine then while Frank on another one but from the DNF's POV it is essentially the same. *** This bug has been marked as a duplicate of bug 1048433 *** |