User Tools

Site Tools



Local portage mirror

Both the portage tree, and the distfiles directory are shared from River to serve local machines needing to query public servers for <tt>emerge –sync</tt> and downloads of common packages.

To use the local mirrors, set the following variables in <tt>make.conf</tt» /etc/make.conf|<source lang="bash"> SYNC="rsync://" GENTOO_MIRRORS="" </source>

Regular sync

Syncing the portage tree just before installing something can be annoying, so it might be useful to keep your tree up to date automatically. If you have several local machines, it would be a good idea to set up a local mirror, to save bandwidth and to avoid abusing the public mirrors.

Add the following script to your daily crontab directory:

/etc/cron.daily/01-portage-sync|<source lang="bash"> #!/bin/sh /usr/bin/emerge --sync >/dev/null </source>

If you are setting up a local mirror, it might be worth scheduling the master machine's synchronisation earlier in the day, to ensure it is up to date before your client machines attempt to sync. You can do this by adding an entry to the <tt>/etc/crontab</tt> file instead of dropping a script in <tt>/etc/cron.daily</tt>

Regular update check

portage.txt · Last modified: 2014/11/24 01:14 by