This shows you the differences between two versions of the page.
— |
portage [2014/11/24 01:14] (current) 0.0.0.0 created |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Portage ====== | ||
+ | [[Category: | ||
+ | |||
+ | ===== 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 < | ||
+ | |||
+ | To use the local mirrors, set the following variables in < | ||
+ | {{File|/ | ||
+ | SYNC=" | ||
+ | GENTOO_MIRRORS=" | ||
+ | </ | ||
+ | |||
+ | ===== 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: | ||
+ | |||
+ | {{File|/ | ||
+ | #!/bin/sh | ||
+ | |||
+ | / | ||
+ | </ | ||
+ | |||
+ | {{Note|If you are setting up a local mirror, it might be worth scheduling the master machine' | ||
+ | |||
+ | ===== Regular update check ===== | ||
+ | Another scheduled task which might be useful is a weekly check of which packages are outdated on your system. | ||
+ | |||
+ | {{File|/ | ||
+ | #!/bin/sh | ||
+ | |||
+ | emerge world --pretend --verbose --color n --columns --nospinner | mail -s " | ||
+ | </ |