Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] setting up a local mirror
Date: Thu, 23 May 2019 11:24:14
Message-Id: 1880951.E34FZnfLUy@dell_xps
In Reply to: [gentoo-user] setting up a local mirror by n952162@web.de
1 On Wednesday, 22 May 2019 22:03:44 BST n952162@×××.de wrote:
2 > It's getting late tonight to try this - before I do so tomorrow, does anyone
3 > have any thoughts about the following plan?
4 >
5 > I want one machine facing the internet that's my local mirror and if
6 > a client needs something that's not on the mirror, the emerge will fail and
7 > I'll get it onto the mirror manually first.
8 >
9 > I'm thinking I need to set these variables:
10 > - make.conf: FEATURES = force-mirror
11 > - make.conf: GENTOO_MIRRORS doesn't seem to do anything
12
13 It should do. It tells the client systems where to fetch distfiles from. You
14 should only have the local server specified in here, or they will recursively
15 use other external mirrors listed until they find the source files they are
16 trying to emerge.
17
18
19 > - /etc/portage/mirrors:
20 > local http://192.168.0.4/distfiles
21
22 This will only be used if the ebuild specifies a URI as a 'mirror://'. Many
23 ebuilds don't (e.g. chromium).
24
25
26 > I've already set up /etc/portage/repos.conf on the clients and rsyncd on
27 > the server. The local mirror of ebuilds seems to work. I've also set up
28 > my apache server to have access to the local repository (I'm somewhat
29 > less sure of my distfiles server)
30
31 Since you're using http, test with wget to see what the server provides and
32 keep an eye on the apache server logs for any misconfiguration errors.
33
34 HTH.
35 --
36 Regards,
37 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature