Configuring Mirrors on Gentoo
Sometimes when we install something via Portage, and we realize that the data download is very slow, this slowness may be directly related to the fact that the repository closest to our location (repository of the country where we live) is not defined. So we can solve this problem by selecting a repository for our system.
First we will install with the user root su
a package called mirrorselect
After installing it now we need to run the command below to select our repository:
Note: that it is necessary to use
-o
with the double redirection>>
to work, remember that it is a DOUBLE REDIRECT>>
not to overwrite your make.conf file.
It will open a dialog and select the repositories you want, use the space key on your keyboard to ‘check’ the desired options. In that case, notice that I have selected all repositories in Canada.
Note: that after accepting the terminal does not clean the contents, however, the prompt is returned, if you want to clean the terminal use the command
tput reset
Then check make.conf and notice that at the end of the file there is now a GENTOO_MIRRORS variable with the ‘rsync, ftp and http’ repositories defined with the address we selected.
Optional:
If you do not already have the definitions of repositories created, run the following commands:
Most likely now downloads during Portage installations will be faster!
More information: https://wiki.gentoo.org/wiki/Handbook:AMD64/Full/Installation#Crooting