Bug 22184

Summary: DNF should use system cache by default for non-privileged users rather than redownloading duplicate data
Product: Mageia Reporter: Neal Gompa <ngompa13>
Component: RPM PackagesAssignee: Neal Gompa <ngompa13>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: Normal CC: cooker, ignatenko
Version: CauldronKeywords: UPSTREAM
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: dnf-2.7.5-1.mga7.src.rpm CVE:
Status comment:

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