Bug 22184 - DNF should use system cache by default for non-privileged users rather than redownloading duplicate data
Summary: DNF should use system cache by default for non-privileged users rather than r...
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal enhancement
Target Milestone: ---
Assignee: Neal Gompa
QA Contact:
URL:
Whiteboard:
Keywords: UPSTREAM
Depends on:
Blocks:
 
Reported: 2017-12-12 16:50 CET by Neal Gompa
Modified: 2017-12-12 22:57 CET (History)
2 users (show)

See Also:
Source RPM: dnf-2.7.5-1.mga7.src.rpm
CVE:
Status comment:


Attachments

Description Neal Gompa 2017-12-12 16:50:54 CET
Description of problem:
By default, DNF downloads metadata for each user rather than reusing the system cache in the event it cannot write to it.

This is unnecessary in most cases, as usually unprivileged users are not doing things that change what repositories are being looked at.

DNF should be able to reuse the existing metadata fetched in the system cache if it exists, and only download when it doesn't exist or has been explicitly requested.

Version-Release number of selected component (if applicable):
2.7.5-1.mga7

How reproducible:
Always

Steps to Reproduce:
1. dnf search dnf (not as root)
Comment 1 Neal Gompa 2017-12-12 16:51:41 CET
Igor,

Any idea how difficult this would be to implement? Maybe as a configuration switch that we can set for Mageia at the minimum?

Keywords: (none) => UPSTREAM
CC: (none) => ignatenko

Comment 2 Johnny A. Solbu 2017-12-12 22:57:04 CET
(In reply to Neal Gompa from comment #1)
> Igor,
> 
> Any idea how difficult this would be to implement? Maybe as a configuration
> switch that we can set for Mageia at the minimum?

The switch should be enabled by default for Mageia. As in, the Default should be to Not download this data for each user, whether or not the system wide cache data is available like our urpm toolset does.

If it isn't available, it should update the system cache, or not at all.

CC: (none) => cooker


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