Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1321319 - PackageKit/pkcon does not clean up package cache
Summary: PackageKit/pkcon does not clean up package cache
Keywords:
Status: CLOSED DUPLICATE of bug 1306992
Alias: None
Product: Fedora
Classification: Fedora
Component: PackageKit
Version: 25
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Richard Hughes
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-25 13:05 UTC by Till Maas
Modified: 2017-07-16 13:14 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-06-27 14:48:22 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Till Maas 2016-03-25 13:05:24 UTC
Description of problem:
PackageKit stores a lot of package metadata even though all updates are installed:
$ LANG=C du -hcs /var/cache/PackageKit/metadata/*/packages
8.0K	/var/cache/PackageKit/metadata/fedora/packages
47M	/var/cache/PackageKit/metadata/google-chrome/packages
125M	/var/cache/PackageKit/metadata/updates/packages
171M	total
# LANG=C pkcon update
Getting updates               [=========================]         
Finished                      [=========================]         
No packages require updating to newer versions.
$ LANG=C du -hcs /var/cache/PackageKit/metadata/*/packages
8.0K	/var/cache/PackageKit/metadata/fedora/packages
47M	/var/cache/PackageKit/metadata/google-chrome/packages
125M	/var/cache/PackageKit/metadata/updates/packages
171M	total


Version-Release number of selected component (if applicable):
PackageKit-1.0.11-1.fc23

Additional info:
PackageKit also keeps multiple versions of packages around$ LANG=C ls -la /var/cache/PackageKit/metadata/updates/packages/kernel-*
-rw-r--r--. 1 root root    54922 Mar  1 06:03 /var/cache/PackageKit/metadata/updates/packages/kernel-4.4.2-301.fc23.x86_64.rpm
-rw-r--r--. 1 root root    55318 Mar  3 06:05 /var/cache/PackageKit/metadata/updates/packages/kernel-4.4.3-300.fc23.x86_64.rpm
-rw-r--r--. 1 root root 21386158 Feb 29 06:04 /var/cache/PackageKit/metadata/updates/packages/kernel-core-4.4.2-301.fc23.x86_64.rpm
-rw-r--r--. 1 root root 21423082 Mar  3 06:05 /var/cache/PackageKit/metadata/updates/packages/kernel-core-4.4.3-300.fc23.x86_64.rpm
-rw-r--r--. 1 root root  1038230 Mar  1 06:05 /var/cache/PackageKit/metadata/updates/packages/kernel-headers-4.4.2-301.fc23.x86_64.rpm
-rw-r--r--. 1 root root  1038658 Mar  3 06:07 /var/cache/PackageKit/metadata/updates/packages/kernel-headers-4.4.3-300.fc23.x86_64.rpm
-rw-r--r--. 1 root root 19112566 Mar  1 06:04 /var/cache/PackageKit/metadata/updates/packages/kernel-modules-4.4.2-301.fc23.x86_64.rpm
-rw-r--r--. 1 root root 19122382 Mar  3 06:06 /var/cache/PackageKit/metadata/updates/packages/kernel-modules-4.4.3-300.fc23.x86_64.rpm

And it also keeps downloading new updates without cleaning up until the filesystem is completely full. Not sure, if all of these require different bugs, it overall the cache management is bad. And IMHO from a distribution point of view all package managers should share the same package cache, instead of all managers keeping copies of updates for themselves (and not cleaning them up).

Comment 1 Yann Droneaud 2016-08-20 09:48:16 UTC
(In reply to Till Maas from comment #0)
> 
> And it also keeps downloading new updates without cleaning up until the
> filesystem is completely full.

This is bug #1306992

Comment 2 Fedora End Of Life 2016-11-24 16:14:07 UTC
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.

Comment 3 Christian Stadelmann 2016-11-24 16:27:00 UTC
This issue is still present on Fedora 25. Please change the version number.

Comment 4 Christian Stadelmann 2017-05-28 13:39:32 UTC
Duplicate of bug #1306992.

Comment 5 Jean-François Fortin Tam 2017-06-27 14:48:22 UTC

*** This bug has been marked as a duplicate of bug 1306992 ***


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