Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #247234

Re: What do folks use to mirror repositories

From <tomas@tuxteam.de>
Newsgroups linux.debian.user
Subject Re: What do folks use to mirror repositories
Date 2022-04-15 13:40 +0200
Message-ID <Ecst0-8TNE-27@gated-at.bofh.it> (permalink)
References <Ecs9z-8THr-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

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" :-)

> Google told me to use apt-mirror [...]

A mirror has different characteristics from a cache. You decide
yourself which packages go in. This may be an advantage, depending
on your use case -- or a disadvantage.

Cheers
-- 
t

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

What do folks use to mirror repositories Sam <sam@email-scan.com> - 2022-04-15 13:20 +0200
  Re: What do folks use to mirror repositories <tomas@tuxteam.de> - 2022-04-15 13:40 +0200
    Re: What do folks use to mirror repositories Roberto C. Sánchez <roberto@debian.org> - 2022-04-15 14:30 +0200
    Re: What do folks use to mirror repositories David Christensen <dpchrist@holgerdanske.com> - 2022-04-16 04:10 +0200
      Re: What do folks use to mirror repositories Charles Curley <charlescurley@charlescurley.com> - 2022-04-16 06:20 +0200
        Re: What do folks use to mirror repositories Celejar <celejar@gmail.com> - 2022-04-19 03:10 +0200
          Re: What do folks use to mirror repositories Charles Curley <charlescurley@charlescurley.com> - 2022-04-19 05:10 +0200
          Re: What do folks use to mirror repositories <tomas@tuxteam.de> - 2022-04-19 07:30 +0200
            Re: What do folks use to mirror repositories David Wright <deblis@lionunicorn.co.uk> - 2022-04-19 18:10 +0200
              Re: What do folks use to mirror repositories Charles Curley <charlescurley@charlescurley.com> - 2022-04-19 19:00 +0200
                Re: What do folks use to mirror repositories Polyna-Maude Racicot-Summerside <debian@polynamaude.com> - 2022-04-19 19:10 +0200
                Re: What do folks use to mirror repositories Celejar <celejar@gmail.com> - 2022-04-20 01:50 +0200
          Re: What do folks use to mirror repositories Tim Woodall <debianuser@woodall.me.uk> - 2022-04-19 20:20 +0200
  Re: What do folks use to mirror repositories "Andrew M.A. Cater" <amacater@einval.com> - 2022-04-15 14:30 +0200
  Re: What do folks use to mirror repositories Nicholas Geovanis <nickgeovanis@gmail.com> - 2022-04-15 17:20 +0200
  Re: What do folks use to mirror repositories David Wright <deblis@lionunicorn.co.uk> - 2022-04-15 18:40 +0200
  Re: What do folks use to mirror repositories Dieter Rohlfing <dr-erc@gmx.net> - 2022-04-16 11:30 +0200

csiph-web