Re: apt-cacher-ng related program and package suggestion
- Date: Thu, 15 Jun 2017 02:51:21 +0000
- From: Andy Smith <andy@xxxxxxxxxxxxxx>
- Subject: Re: apt-cacher-ng related program and package suggestion
On Wed, Jun 14, 2017 at 09:57:50PM +0200, tuxderlinuxfuchs77@xxxxxxxxx wrote:
> apt-cacher-switch add <Host1_Name> <http://<IP1>:<PORT1>>
> apt-cacher-switch add <Host2_Name> <http://<IP2>:<PORT2>>
> Then at university:
> apt-cacher-switch enable <Host1_Name>
> At home:
> apt-cacher-switch enable <Host2_Name>
> In an environment where no cacher is on the network
> apt-cacher-switch disable
Seems like it would be easier to install squid-deb-proxy-client on
each client machine. This listens for Avahi announcements of
_apt_proxy._tcp to choose a proxy.
Normally your server(s) would run package squid-deb-proxy (an
install of squid customised for caching Debian packages) which takes
care of announcing its presence over Avahi, but you can make your
own announcements that point at your own installs of apt-cacher-ng
if you like.
If nothing is being announced then squid-deb-proxy-client goes
direct to Debian mirrors.
That way this all works without having to run any commands on the
client depending on where the client machine is located.
One downside is that if a broken proxy announces itself then your
clients will use it, i.e. you don't have any control over whether
the proxy is used or not.
https://bitfolk.com/ -- No-nonsense VPS hosting