Note that the SYNC variable is now deprecated, and instead the sync-type and sync-uri attributes in /etc/portage/repos.conf should be used. See portage(5) for more information.
mirrorselect provides a nice interface to select the mirrors you want.
emerge --ask mirrorselect
The default configuration of repositories for Portage comes from the portage package itself at: /usr/share/portage/config/repos.conf. However settings in /etc/portage/repos.conf override values set /usr/share/portage/config/repos.conf.
Just navigate to the mirrors of choice and press Space to select one or more mirrors.
- Find Gentoo download mirror (set GENTOO_MIRRORS variable):
mirrorselect -i -o >> /etc/portage/make.conf
- Find Gentoo rsync mirror:
mirrorselect -i -r -o >> /etc/portage/repos.conf
- Find 3 fastest servers by downloading 100K from each:
mirrorselect -s3 -b10 -o -D >> /etc/portage/make.conf