I used to use http-replicator to provide a local cache for portage distfiles on my networks. It was last-rited some time ago, and I haven't found many reasonable alternatives.
I initially tried using net-proxy/squid in its default configuration - this worked in that I was able to use it as a proxy, but it seems kind of heavyweight, and I can't tell if it is actually caching anything.
The wiki page on the subject https://wiki.gentoo.org/wiki/Local_distfiles_cache is rather sparse on details. It suggests using apt-cacher-ng, and even configuring it so that it doesn't store multiple copies of each distfile when you run emerge on the host system (which I had http-replicator configured to do, if in a less-than-ideal way). However, it appears that this package too is on its way to retirement (https://bugs.gentoo.org/631878). The wiki also suggests nginx can be configured for this purpose, but I'm already running apache on these systems and I don't need yet another web server.
Is this even a concern with modern internet connectivity? I only have a handful of machines the cache would serve.
Thanks!




