Gordon Messmer wrote:
Use "dnf repolist -v" to find out, in the future. It will
print the
date from the metadata you have, and the URL of the mirror from which it
was retrieved.
OK, today 'dnf repolist -v' tells me:
fedora: using metadata from Wed Jul 22 08:38:59 2015.
rmy: using metadata from Wed Jul 22 08:38:59 2015.
updates: using metadata from Wed Jul 22 08:54:38 2015.
Last metadata expiration check performed 21:22:45 ago on Wed Jul 22 08:54:38 2015.
Repo-id : fedora
Repo-updated : Sat May 23 11:23:20 2015
Repo-expire : 172,800 second(s) (last: Wed Jul 22 08:38:59 2015)
Repo-id : rmy
Repo-updated : Sat Jun 20 19:40:40 2015
Repo-expire : 172,800 second(s) (last: Wed Jul 22 08:38:59 2015)
Repo-id : updates
Repo-updated : Tue Jul 21 06:47:56 2015
Repo-expire : 21,600 second(s) (last: Wed Jul 22 08:54:38 2015)
The fedora and rmy repos both have the default metadata_expire of 48
hours; updates has 6 hours, as configured in fedora-updates.repo.
fedora and rmy are still within their metadata_expire timeout; updates
has expired.
Running the same commands as yesterday:
[root@vulcan rmyf22]# dnf check-update
Last metadata expiration check performed 0:00:00 ago on Thu Jul 23 06:19:10 2015.
[root@vulcan rmyf22]# dnf --refresh check-update
Fedora 22 - x86_64 - RMY repository 78 kB/s | 6.0 kB 00:00
Last metadata expiration check performed 0:00:00 ago on Thu Jul 23 06:20:06 2015.
[root@vulcan rmyf22]# rm -rf /var/cache/dnf/x86_64/22/updates*
[root@vulcan rmyf22]# dnf check-update
Fedora 22 - x86_64 - Updates 946 kB/s | 12 MB 00:13
Last metadata expiration check performed 0:00:11 ago on Thu Jul 23 06:23:32 2015.
[root@vulcan rmyf22]#
What immediately seems odd is that 'dnf --refresh check-update' pulled
in a new version of the rmy metadata (which hasn't expired) but not
the updates metadata (which has).
Forcibly removing the updates metadata causes a download but I get the
same version as yesterday (the one from Jul 21 06:47:56 2015) so there
are no new updates.
Actually, every time I run 'dnf --refresh check-update' the metadata for
the rmy repo is downloaded. Maybe that's because the rmy repo has an
'ftp://' URL so dnf can't use an 'if-modified-since' request to see
if
it's changed. I wonder if that's confusing 'dnf --refresh'?
Ron