On Fri, Apr 15, 2022 at 01:36:43PM +0200, to...@tuxteam.de wrote: > On Fri, Apr 15, 2022 at 07:03:14AM -0400, Sam wrote: > > That's pretty much it. I want to mirror all my updates to a single server on > > my LAN and have everything on my LAN apt update from it. This seems more > > efficient than having everyone download their own copies. > > If all you are looking for is efficiency, you might also consider an > apt cache (I'm pretty happy with apt-cacher-ng). It is pretty low > maintenance, as it decides itself when to throw out older entries. > > The big plus for me is that it can cache across multiple repos (I > sometimes build "old" images from archives.d.o for some legacy > hardware hidden away in some customer's closets, don't ask ;-) > It just does so silently. Whenever the package isn't there, it > fetches it, next time it's served from the cache. > > Another nice point is that you can just keep your /etc/apt/sources.list > as it should be (with the "real" repo addresses out there) and the > apt cache works as a proxy. An entry in (e.g.) /etc/apt/apt.conf.d/02cache > like so: > > # /etc/apt/apt.conf.d/02cache > # > Acquire::http::proxy "http://localhost:3142" > > (or whatever your apt cache's URL is) suffices -- something you can > easily disable or remove should you ever "release" your pet machine > "into the wild" :-) > I very much agree with Tomas. After having tried a few different solutions years ago, I have settled on this one and I am convinced it is still the best available solution to this particular problem.
Regards, -Roberto -- Roberto C. Sánchez