Description of problem: After using 'dnf --releasever=23 system-upgrade download' to download packages for a system upgrade, neither 'dnf clean packages' nor 'dnf system-upgrade clean' will clean out the downloaded packages. This is before any call to 'dnf system-upgrade upgrade' or 'dnf system-upgrade reboot'. I specifically encountered the issue when 'dnf --releasever=23 system-upgrade download' failed running the transaction test due to an unsigned package. I wanted to clean out all of the downloaded files and redownload everything after waiting for a bit but no 'dnf' command worked. When 'dnf system-upgrade download' finishes it prints this message: Download complete! Use 'dnf system-upgrade reboot' to start the upgrade. The downloaded packages were saved in cache till the next successful transaction. You can remove cached packages by executing 'dnf clean packages'. I ended up needing to manually delete /var/lib/dnf/system-upgrade manually. Version-Release number of selected component (if applicable): dnf-plugin-system-upgrade-0.4.0-1.fc22.noarch How reproducible: Always. Steps to Reproduce: 1. Run 'dnf --releasever=23 system-upgrade download' 2. Run 'dnf clean packages' or 'dnf system-upgrade clean' Actual results: Packages downloaded by 'dnf system-upgrade download' are not cleaned. Expected results: Packages downloaded by 'dnf system-upgrade' are cleaned from the system. Additional info: N/A
dnf-plugin-system-upgrade-0.4.1-1.fc21 has been submitted as an update to Fedora 21. https://bodhi.fedoraproject.org/updates/FEDORA-2015-15941
dnf-plugin-system-upgrade-0.4.1-1.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-15942
This bug appears to be fixed by dnf-plugin-system-upgrade-0.4.1-1.fc22
dnf-plugin-system-upgrade-0.4.1-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update dnf-plugin-system-upgrade'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-15940
dnf-plugin-system-upgrade-0.4.1-1.fc21 has been pushed to the Fedora 21 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update dnf-plugin-system-upgrade'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-15941
dnf-plugin-system-upgrade-0.4.1-1.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update dnf-plugin-system-upgrade'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-15942
dnf-plugin-system-upgrade-0.4.1-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
dnf-plugin-system-upgrade-0.4.1-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.
Still a bug, Fedora 23. After upgrading from Fedora 22: # rpm -qa dnf-plugin-system-upgrade dnf-plugin-system-upgrade-0.7.0-1.fc23.noarch # ls -ralt /var/lib/dnf/system-upgrade | wc -l 2388 # du /var/lib/dnf/system-upgrade 1933688 /var/lib/dnf/system-upgrade # dnf system-upgrade clean # ls -ralt /var/lib/dnf/system-upgrade | wc -l 2388 # du /var/lib/dnf/system-upgrade 1933688 /var/lib/dnf/system-upgrade # dnf clean packages Cleaning repos: adobe-linux-x86_64 ulyaoth fedora rpmfusion-free-updates-testing : google-chrome-unstable rpmfusion-nonfree google-talkplugin : google-chrome fedora-spotify rpmfusion-nonfree-updates-testing : rpmfusion-free Dropbox updates 0 package files removed # ls -ralt /var/lib/dnf/system-upgrade | wc -l 2388 # du /var/lib/dnf/system-upgrade 1933688 /var/lib/dnf/system-upgrade
Definitely still a problem. [root@jeglap cache]# cat /etc/fedora-release Fedora release 23 (Twenty Three) [root@jeglap cache]# pwd /var/cache [root@jeglap cache]# dnf clean all 0 files removed [root@jeglap cache]# dnf system-upgrade clean Cleaning up downloaded data... [root@jeglap cache]# du -sh * | grep 'G ' 3.7G system-upgrade 2.7G yum Everything in /var/cache/system-upgrade/packages/* is Fedora 22 stuff. [root@jeglap cache]# dnf system-upgrade clean --releasever=22 Cleaning up downloaded data... [root@jeglap cache]# du -sh * | grep 'G ' 3.7G system-upgrade 2.7G yum This had no effect, either.
This message is a reminder that Fedora 23 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 23. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '23'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 23 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
I tried upgrading from F25 to rawhide. /var/lib/dnf/system-upgrade is cleaned after upgrade. Before the upgrade, "dnf system-upgrade clean" cleans it as well. "dnf clean packages" doesn't, but I'm not sure it's supposed to. So overall this seems fixed. dnf-1.1.10-3.fc25 dnf-plugin-system-upgrade-0.7.1-3.fc25