Bug 1185741 - [rfe] utility for syncing cache between DNF/yum/PackagKit
Summary: [rfe] utility for syncing cache between DNF/yum/PackagKit
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: rawhide
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
Assignee: rpm-software-management
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1190548 1222899 1225400 1255278 (view as bug list)
Depends On:
Blocks: 1203491
TreeView+ depends on / blocked
 
Reported: 2015-01-26 08:20 UTC by Igor Gnatenko
Modified: 2019-03-03 11:23 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-03-03 11:23:45 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Igor Gnatenko 2015-01-26 08:20:43 UTC
I have updated system DNF cache, but user cache is old. I think we should check if system cache is exists and updated and then copy it to user instead of downloading new cache.

Comment 1 Honza Silhan 2015-01-26 18:14:43 UTC
Good point. This should do the utility for cache syncing between DNF/yum/PackageKit.

Comment 2 Jan Zeleny 2015-01-27 07:33:59 UTC
Let me provide some details here. We have discussed this issue with Richard Hughes (packagekit) and Tomas Mlcoch (librepo) and we came to a conclusion that it makes sense in a long term to have a service built on top of librepo that would handle metadata download and distribution.

All tolls requiring any metadata would not download it directly but they would rather ask this service and the service would either download the metadata or it would just provide a local copy of the required files.

However, this is something we can't possibly do in less that several months so if there is anyone willing to pick this up, we invite him to do that.

Comment 3 Honza Silhan 2015-03-03 15:25:28 UTC
*** Bug 1190548 has been marked as a duplicate of this bug. ***

Comment 4 Honza Silhan 2015-05-19 16:38:17 UTC
*** Bug 1222899 has been marked as a duplicate of this bug. ***

Comment 5 Radek Holy 2015-05-29 07:11:13 UTC
I think that the service should not be limited to only one machine. (See also bug 1218415).

Comment 6 Radek Holy 2015-06-30 14:51:17 UTC
*** Bug 1225400 has been marked as a duplicate of this bug. ***

Comment 7 Honza Silhan 2015-08-31 12:42:45 UTC
*** Bug 1255278 has been marked as a duplicate of this bug. ***

Comment 8 Christopher Meng 2015-08-31 12:51:23 UTC
But I see `dnf update` is no longer allowed for normal users. Maybe hand this rfe to packagekit?

Comment 9 Fedora Admin XMLRPC Client 2016-07-08 09:25:13 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 10 Christian Stadelmann 2017-04-09 15:28:28 UTC
Any update on this? Would it not be sufficient to symlink both utilities to the same directory?

Some examples for the "updates" repo:

/var/cache/PackageKit/25/metadata/updates/repodata and /var/cache/dnf/updates-87ad44ec2dc11249/repodata contain similar data.

/var/cache/dnf/updates-87ad44ec2dc11249/packages and /var/cache/PackageKit/25/metadata/updates/packages have many files in common.

Comment 11 techtonik 2017-08-05 10:55:18 UTC
It would be nice if that utility could move and upgrade old caches to newer locations and cleanup them.

Comment 12 Daniel Mach 2018-05-29 14:28:26 UTC
DNF team is planning to consolidate cache management into libdnf.
All tools would use the same functions and cache in the same location.
Building a new tool seems to be a workaround to me.

Comment 13 Daniel Mach 2019-03-03 11:23:45 UTC
PackageKit is EOLed.
DNF and microdnf will share the cache via shared code in libdnf.
Closing the requirement as we're definitely not going to write a new tool syncing the caches.


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