What I'm hoping for, though, is a configuration flag that causes any of:
- inhibits a theoretical traversal of repos.conf databases (e.g. also 
/usr/share/porrage/...)
- inhibits trying to upgrade beyond what's already installed in the mirror 
server

> Gesendet: Freitag, 26. April 2019 um 07:32 Uhr
> Von: n952...@web.de
> An: gentoo-user@lists.gentoo.org
> Betreff: Aw: Re: [gentoo-user] local mirrors
>
> Thank you for the explanation.  I wonder what the local mirror page means 
> when it talks about saving bandwidth.   What *does* it serve if not the 
> distfiles?  And when /etc/portage/repos.conf points to my local server, why 
> would portage disregard that?
>
> The rsync server on the mirror host points to the gentoo portage installation 
> on that local mirror host.  How can any metadata  there know about anything 
> that's not already resolved there?
>
> At the very least, I suspect that that local mirror page is wrong and rather 
> refers to something that *could* be implemented (without extra packages being 
> installed, just by configuration), but isn't yet.
>
> > Gesendet: Freitag, 26. April 2019 um 00:35 Uhr
> > Von: "Rich Freeman" <ri...@gentoo.org>
> > An: gentoo-user@lists.gentoo.org
> > Betreff: Re: [gentoo-user] local mirrors
> >
> > On Thu, Apr 25, 2019 at 5:44 PM <n952...@web.de> wrote:
> > >
> > > So, I set up the rsync deamon on my "mirror server" host and the 
> > > /etc/portage/repos.conf/gentoo.conf file on the client machine, run the 
> > > recommended test and everything is just as described.  I sync my client, 
> > > and am very happy.
> > >
> > > By coincidence, I happen to look in /var/log/emerge-fetch.log on the 
> > > client and discover that everything got fetched remotely, from, like 
> > > gentoo.org and rubygems.org, etc.
> > >
> > > What a disappointment!  Is there something I still have to do?
> > >
> >
> > The repository and distfiles both need to be separately mirrored.
> > Maintaining a distfiles mirror is a bit more complex as all your hosts
> > probably don't have the same packages installed, and fetching
> > distfiles for all the packages would use a ton of space (and
> > bandwidth).  For Gentoo official mirrors this is exactly what is done,
> > but of course they get used by many users.
> >
> > What I have done at times is run apache on one host and serve out its
> > local distfiles cache, and then list this as the first mirror in the
> > list for my other hosts.  So, they try to fetch from that host before
> > going out to the internet.  However, that doesn't do anything to
> > ensure that the needed files are on that host.  It just helps with
> > @system packages and other packages the hosts have in common.  That is
> > an approach that doesn't really cost you anything and probably
> > provides 75% of the benefit.  It is also easy to do if you have a
> > bunch of identical hosts and then yields 100% of the benefit (if
> > they're truly identical I'd go a step further and set up a binpkg
> > mirror as there is no point in building the same thing many times with
> > the same flags).
> >
> > If you really want to run a full distfiles mirror I'm sure the infra
> > scripts are floating around somewhere.  It probably just amounts to
> > running an ebuild fetch on every ebuild in the repo.
> >
> > --
> > Rich
> >
> >
>
>

Reply via email to