Red Hat Bugzilla – Bug 1281305
dnf overzealously discard cache during system-upgrade
Last modified: 2015-11-12 09:58:09 EST
Description of problem:
When trying to upgrade from Fedora 23 from Fedora 22, if dnf encounters an error, trying to run *any* dnf command to fix the issue will discard the cache. My upgrade is downloading for the third time, and it is EXTREMELY frustrating.
Re-downloading is not only a waste of bandwidth, but a complete utter waste of time. I've got 3 machines to upgrade, it's gonna be a huge pain...
This is a regression over previous system upgrade using fedup.
Version-Release number of selected component (if applicable): 22
How reproducible: always
Steps to Reproduce:
1. dnf system-upgrade download --releasever=23
2. dnf encounter a conflict
3. use dnf to resolve the conflict
Downloaded cache is discarded.
Downloaded cache is kept.
The description should read: "from Fedora 22 to Fedora 23". Sorry for the typo.
FWIW /etc/dnf/dnf.conf has a 'keepcache' options, but changing the configuration file seems overkill for what should be a temporary behavior.
How about introducing a --keepcache option to dnf ?
*** This bug has been marked as a duplicate of bug 1276886 ***