Red Hat Bugzilla – Bug 1285316
metadata_expire=never does not work since Fedora 23
Last modified: 2016-01-05 05:52:09 EST
Description of problem:
I have metadata_expire=never in both dnf.conf and
yum.conf. Neither seems to have the desired effect.
Under Fedora 22, the effect is that dnf
can function much like apt:
dnf makecache downloads data, dnf update
updates it, dnf install downloads and install package
all without bothering to touch metadata.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. set metadata_expire=never
2. run dnf makecache
3. wait a day or two
dnf starts loading metadata (I'm guessing - it's showing
progress bar) from all its sources.
dnf update uses cached metadata since it never expires
this is a regression: worked fine under Fedora 22.
*** This bug has been marked as a duplicate of bug 1293910 ***
I have try to reproduce and I have found, that in this case it is probably not a bug. I think that you have metadata_expire=some_number in .repo file that describe repository. If this option is present, it overwrites options in dnf.conf file. Please if this is not your case, feel free to reopen the bug report.