1 |
On Fri, 18 Sep 2015 10:02:27 -0700, Daniel Frey wrote: |
2 |
|
3 |
> 2. Export the distfiles directory. |
4 |
|
5 |
That's what I do. |
6 |
|
7 |
> This seems to be a bit better of a solution, other than not being able |
8 |
> to use it outside the LAN. |
9 |
|
10 |
ZeroTier can take care of that, or a VPN if you feel like doing the work |
11 |
yourself. |
12 |
|
13 |
> However, cleaning this directory becomes a |
14 |
> lot less trivial as tools used to clean it will assume that the current |
15 |
> machine is the only machine using it and clobber other workstation's |
16 |
> required distfiles. |
17 |
|
18 |
How tight is space? eclean-dist only removes distfiles for packages that |
19 |
are no longer in the tree. So you can run it on one system and keep |
20 |
$DISTDIR reasonably trimmed. If you use the --package-names option, it |
21 |
will do as you suggest and only keep files needed by the machine running |
22 |
the command. |
23 |
|
24 |
> I suppose the easiest way to sync is to wipe it completely out and run |
25 |
> `emerge -fe world` on all machines to rebuild it, but this would be a |
26 |
> fair bit of work as well. |
27 |
|
28 |
If you run this on each computer |
29 |
|
30 |
emerge -epf --usepkg=n world | awk '/^[fh]t?tps?\:\/\// {print $1}' | sort -u | while read f; do |
31 |
touch --no-create ${DISTDIR}/$(basename ${f}) |
32 |
done |
33 |
|
34 |
It will touch each file needed by an installed package. Then you can |
35 |
simply delete all files more than a day old (or longer if you want to keep |
36 |
some fallback) |
37 |
|
38 |
find $DISTDIR -type f -mtime +3- -exec rm "{}" + |
39 |
|
40 |
|
41 |
-- |
42 |
Neil Bothwick |
43 |
|
44 |
Everyone has a photographic memory. Some don't have film. |