Bug 1190548
Summary: | [RFE]: Make cache usable to all users | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Christopher Meng <i> |
Component: | dnf | Assignee: | Packaging Maintenance Team <packaging-team-maint> |
Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | akozumpl, elad, jsilhan, mluscon, packaging-team-maint, pnemade, rholy, tim.lauridsen, vondruch |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-03-03 15:25:28 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Christopher Meng
2015-02-09 04:08:34 UTC
Sharing cache is not easy task. We know about it and we plan to extend it to sharing the cache between PackageKit/yum/dnf. tip: install dnf-plugins-core (noroot plugin) to avoid fetching metadata for root operation - it will abort at the start. *** This bug has been marked as a duplicate of bug 1185741 *** *** Bug 1211166 has been marked as a duplicate of this bug. *** (In reply to Jan Silhan from comment #1) > Sharing cache is not easy task. We know about it and we plan to extend it to > sharing the cache between PackageKit/yum/dnf. Sharing metadata between users seems relatively simple to me (sharing with PK is another story): check if global (owned by root) metadata exists. If it exists, use it. If not, go to the slow path of downloading the metadata for the user only. You could also add a lock file so that if root is refreshing the metadata to prevent race conditions. What am I missing? is there some complexity here I didn't think about? > > tip: install dnf-plugins-core (noroot plugin) to avoid fetching metadata for > root operation - it will abort at the start. > This is not helpful when you want to do non privileged operations such as search. (In reply to Elad Alfassa from comment #3) > (In reply to Jan Silhan from comment #1) > > Sharing cache is not easy task. We know about it and we plan to extend it to > > sharing the cache between PackageKit/yum/dnf. > > Sharing metadata between users seems relatively simple to me (sharing with > PK is another story): check if global (owned by root) metadata exists. If it > exists, use it. If not, go to the slow path of downloading the metadata for > the user only. > You could also add a lock file so that if root is refreshing the metadata to > prevent race conditions. > > What am I missing? is there some complexity here I didn't think about? I agree with you (that's the reason why I've marked you bug as a duplicate of this bug and of the bug referenced here). On the other hand, AFAIK there is already a plan to implement the cache sharing service and if it's true, it's probably better for DNF (and consequently for its users) to wait for it and not complicate its code base just for the meantime. > > > > tip: install dnf-plugins-core (noroot plugin) to avoid fetching metadata for > > root operation - it will abort at the start. > > > > This is not helpful when you want to do non privileged operations such as > search. This should be helpful for the original reporter because he run "dnf upgrade", the command downloaded the metadata and only then he got the message that the command cannot continue without the needed privileges. With the plugin, the command would fail immediately and thus it wouldn't download the unneeded amount of data. The tip is not a solution nor a workaround for this problem. It could have just save the bandwidth in the given situation. *** Bug 1255278 has been marked as a duplicate of this bug. *** |