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

