Gentoo Archives: gentoo-user

From: n952162@×××.de
To: gentoo-user@l.g.o
Subject: Aw: Re: [gentoo-user] local mirrors (summary, leading to more questions)
Date: Sun, 28 Apr 2019 20:37:40
Message-Id: trinity-b0f022bd-1f37-4c96-abe7-d66941efb2a0-1556483839044@3c-app-webde-bs58
In Reply to: Aw: Re: [gentoo-user] local mirrors by n952162@web.de
1 Thanks to all who reponded:
2
3 - Rich Freeman suggests:
4 - having apache serve the local distfiles.
5 How? Just make them available in the apache root and give portage the URL somewhere?
6 - use "infra scripts", but I think that's for running an up-to-date general-purpose mirror
7
8 He explains later that repos.conf defines the single place where the
9 repository is defined but that is distinct from where the distfiles
10 come from, which is defined by make.conf:GENTOO_MIRRORS
11
12 - Dale suggests:
13 - a package, http-replicator, which might do Freeman's first
14 suggestion.
15
16 - Neil Bothwick explains the difference between serving the "portage
17 mirror, the repository of ebuild and associated files" and the
18 distfiles, and suggests using NFS, presumably instead of, or in
19 addition to /usr/portage/distfiles.
20
21 Okay, I looked for the first time at the files directly under /usr/portage.
22 Is it a correct assumption that all packages available for installation will be represented there?
23 And that's it? That's basically all there is to a gentoo installation?
24 - /usr/portage/distfiles
25 - the ebuilds directly under /usr/portage
26 - /usr/portage/eclass
27 - /usr/portage/metadata
28 - /usr/portage/profiles
29 - /etc/portage
30
31 If so, then I'm delighted in the simplicity of it. Like reading the one page definition of tcl.
32 Unfortunately, it doesn't come through so well in the documentation,
33 with things like layouts seemingly basic to an understanding.
34
35 - Peter Humphrey suggests:
36 - http ftp proxy
37
38 In what way is that different from rsync which I thought I'd already configured?
39
40
41
42
43 > Gesendet: Freitag, 26. April 2019 um 07:42 Uhr
44 > Von: n952162@×××.de
45 > An: gentoo-user@l.g.o
46 > Betreff: Aw: Re: [gentoo-user] local mirrors
47 >
48 > What I'm hoping for, though, is a configuration flag that causes any of:
49 > - inhibits a theoretical traversal of repos.conf databases (e.g. also /usr/share/porrage/...)
50 > - inhibits trying to upgrade beyond what's already installed in the mirror server
51 >
52 > > Gesendet: Freitag, 26. April 2019 um 07:32 Uhr
53 > > Von: n952162@×××.de
54 > > An: gentoo-user@l.g.o
55 > > Betreff: Aw: Re: [gentoo-user] local mirrors
56 > >
57 > > 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?
58 > >
59 > > 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?
60 > >
61 > > 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.
62 > >
63 > > > Gesendet: Freitag, 26. April 2019 um 00:35 Uhr
64 > > > Von: "Rich Freeman" <rich0@g.o>
65 > > > An: gentoo-user@l.g.o
66 > > > Betreff: Re: [gentoo-user] local mirrors
67 > > >
68 > > > On Thu, Apr 25, 2019 at 5:44 PM <n952162@×××.de> wrote:
69 > > > >
70 > > > > 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.
71 > > > >
72 > > > > 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.
73 > > > >
74 > > > > What a disappointment! Is there something I still have to do?
75 > > > >
76 > > >
77 > > > The repository and distfiles both need to be separately mirrored.
78 > > > Maintaining a distfiles mirror is a bit more complex as all your hosts
79 > > > probably don't have the same packages installed, and fetching
80 > > > distfiles for all the packages would use a ton of space (and
81 > > > bandwidth). For Gentoo official mirrors this is exactly what is done,
82 > > > but of course they get used by many users.
83 > > >
84 > > > What I have done at times is run apache on one host and serve out its
85 > > > local distfiles cache, and then list this as the first mirror in the
86 > > > list for my other hosts. So, they try to fetch from that host before
87 > > > going out to the internet. However, that doesn't do anything to
88 > > > ensure that the needed files are on that host. It just helps with
89 > > > @system packages and other packages the hosts have in common. That is
90 > > > an approach that doesn't really cost you anything and probably
91 > > > provides 75% of the benefit. It is also easy to do if you have a
92 > > > bunch of identical hosts and then yields 100% of the benefit (if
93 > > > they're truly identical I'd go a step further and set up a binpkg
94 > > > mirror as there is no point in building the same thing many times with
95 > > > the same flags).
96 > > >
97 > > > If you really want to run a full distfiles mirror I'm sure the infra
98 > > > scripts are floating around somewhere. It probably just amounts to
99 > > > running an ebuild fetch on every ebuild in the repo.
100 > > >
101 > > > --
102 > > > Rich
103 > > >
104 > > >
105 > >
106 > >
107 >
108 >

Replies

Subject Author
Re: Aw: Re: [gentoo-user] local mirrors (summary, leading to more questions) Dale <rdalek1967@×××××.com>
Re: Aw: Re: [gentoo-user] local mirrors (summary, leading to more questions) Peter Humphrey <peter@××××××××××××.uk>