dnf installs cron.hourly

Ales Kozumplik akozumpl at redhat.com
Mon Mar 18 12:34:58 UTC 2013


On 03/18/2013 10:33 AM, drago01 wrote:
> On Mon, Mar 18, 2013 at 9:53 AM, Ales Kozumplik<akozumpl at redhat.com>  wrote:
>> On 03/15/2013 12:16 PM, Neal Becker wrote:
>>>
>>> I don't think users would expect that install of dnf would without asking
>>> (or
>>> control) automatically run dnf-makecache.
>>>
>>> At least, this should be controllable via /etc/sysconfig.  Further, I
>>> think it's
>>> not consistent with Fedora practice to enable this on default by
>>> installing the
>>> package.
>>>
>>
>> Hi Neal, hi Thread,
>>
>> This is a legit concern yet majority of people appreciates having the
>> metadata handy and only a minority worries about the traffic.
>>
>
> Downloading the data *every hour* is overkill though. Once a day
> should be more then enough.

Not necessarily, it depends on how quickly are old packages removed from 
the mirrors, the minimum is not dictated by anyone. The metadata expiry 
time could be used as the lower bound on this but then there could be 
repos that have this set to less than an hour for instance. In any case: 
this value is inspected on every 'dnf makecache' execution so for normal 
repositories that only expire once a day or so nothing is downloaded 96% 
of the time. Note that the Fedora update repositories expire every 6 hours.

All that said, we shouldn't bother with pathological cases like that and 
only run the metadata check every six hours or less often. So, 
basically, you are right.

Ales


More information about the devel mailing list