Description of problem: If a package gets frequent update and the user does not select reboot to install updates very frequently then packagekit will keep the older version of the package after downloading a newer version. Worse packagekit will keep this older version around even after successfully applying offline updates. Version-Release number of selected component (if applicable): PackageKit-1.1.10-1.fc28.x86_64 How reproducible: Let packagekit download updates for offline updating, but do not apply them for say 2 weeks. Actual results: [hans@shalem ~]$ sudo du -s /var/cache/PackageKit 1120580 /var/cache/PackageKit This is just *after* applying offline updates: [hans@shalem ~]$ sudo du -s /var/cache/PackageKit/28/metadata/updates-testing/packages/ 844144 /var/cache/PackageKit/28/metadata/updates-testing/packages/ [hans@shalem ~]$ ls /var/cache/PackageKit/28/metadata/updates-testing/packages/ <snip> wine-system-fonts-3.11-1.fc28.noarch.rpm <snip> [hans@shalem ~]$ rpm -q wine-system-fonts wine-system-fonts-3.12-1.fc28.noarch Expected results: PackageKit removes older packages when downloading new ones and/or after applying offline updates, /var/cache/PackageKit only contains metadata, all packages dirs are empty immediately after applying offline updates.
[hans@shalem ~]$ sudo rm -rf /var/cache/PackageKit/28/metadata/*/packages [hans@shalem ~]$ sudo du -s /var/cache/PackageKit 234680 /var/cache/PackageKit
This bug appears to have been reported against 'rawhide' during the Fedora 29 development cycle. Changing version to '29'.
This should be now fixed in https://github.com/hughsie/PackageKit/commit/66f2966fb6484a86324f98302659c5f27a02b1b5
PackageKit-1.1.12-1.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2018-c3dd0383fa
PackageKit-1.1.12-1.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-c3dd0383fa
PackageKit-1.1.12-1.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.