Gentoo Archives: gentoo-user

From: Edward M <edwardm.gentoo.java@××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: to install portage on other gentoo installs
Date: Fri, 14 Feb 2014 22:27:22
Message-Id: BLU0-SMTP26686C69B2F90B9FD568BD3CB9C0@phx.gbl
In Reply to: [gentoo-user] Re: to install portage on other gentoo installs by eroen
1 On Fri, 14 Feb 2014 19:03:10 +0100
2 eroen <eroen@××××××××××××.eu> wrote:
3
4 > On Wed, 12 Feb 2014 16:40:22 -0800, Edward M
5 > <edwardm.gentoo.java@××××.com> wrote:
6 > > Howdy,
7 > >
8 > > Been busy learning Linux :-) got new email other was getting
9 > > crowded. I'm planing on installing Gentoo on a few systems and I
10 > > was wondering to save bandwidth, i could install portage to the
11 > > other Gentoo installs from my system instead downloading from
12 > > mirrors?
13 > >
14 > > Thanks in advance!
15 >
16 > Setting up a local rsync mirror for a portage tree is fairly simple,
17 > you share the working tree at /usr/portage on a local server to
18 > the network and make sure the server is up-to-date before syncing
19 > other clients to it. This is documented in [1]. After setting up the
20 > mirror, you only need to sync-uri in /etc/portage/repos.conf on the
21 > other (local) clients. See portage(5)[2], section 'repos.conf' and
22 > make.conf(5)[3], section 'SYNC' for details on client configuration.
23 > Please *do* read those sections, as much of the information on the
24 > wiki regarding the SYNC variable is outdated.
25 >
26 > For sharing distfiles between hosts, a http server sharing the
27 > distfiles folder and prepending the server's uri to GENTOO_MIRRORS in
28 > make.conf[3] might be sufficient for your needs. If the installs are
29 > not homogenous, you can even set up http servers on all of them, and
30 > add all the other local hosts to GENTOO_MIRRORS.
31 >
32 > You might want to skim through the FEATURES section in make.conf(5)[3]
33 > for using local distfiles mirrors, as some of them can improve the
34 > usefulness of the mirror significantly.
35 >
36 > NFS is another possibility for both portage tree and distfiles and can
37 > reduce total disk space needs, but it incurs significant network
38 > latency which is especially noticeable for portage trees. I use it
39 > myself for virtual machines, but would not suggest it for use over a
40 > physical network. Also note that portage has PORTAGE_RO_DISTDIRS[3] as
41 > an alternative to GENTOO_MIRRORS for eg. read-only *mounted* network
42 > shares which may provide some extra flexibility.
43 >
44 > 1:
45 > https://wiki.gentoo.org/wiki/Project:Infrastructure/Rsync#Setting_up_your_own_local_rsync_mirror
46 > 2: https://dev.gentoo.org/~zmedico/portage/doc/man/portage.5.html 3:
47 > https://dev.gentoo.org/~zmedico/portage/doc/man/make.conf.5.html
48 >
49
50 Thank you for suppling great lesson and links. I will go over the
51 sections you mentioned and take notes. I will be having fun this
52 weekend...configuring Gentoo, with all the great knowledge i was
53 given from kind Gentoo users. Thanks again.
54
55 Best regards,
56 Ed
57 --
58
59 Learing Linux with Gentoo to earn LPIC1.