On Mon, 2020-04-06 at 07:20 +0200, Fabrice BAUZAC-STEHLY wrote:
In your situation I think I would look into setting up a caching proxy such as Squid. It should be able to cache many kinds of files you may need on several of your machines, not only rpms downloaded by dnf but maybe also some common webpages, javascript or images you download via a browser from several machines.
Since each download from a Fedora installation could fetch RPMs from different repo servers, and Squid will cache based on the whole internet address of each file, you'd need to change the DNF config on them to always use the same repo server.
I think you can configure DNF to go through a proxy, so you wouldn't have to specially configure Squid, it'd just cache in its normal way.
I used to do that kind of thing for Windows updates, 20 years ago. But I'm not sure if it's worth going to this trouble with Fedora. Once installed, the next set of updates can be the small delta RPM files (just the difference between the prior install and the bits of it that are actually updated). A lot of those delta files are very small.
I seem to recall that there was a package for easily setting up a local repo service to do this kind of thing (one PC will act as your cache for the rest, only downloading the wanted RPMs rather than mirroring everything on the external repo).