GENTOO_MIRRORS

From Gentoo Wiki
Jump to:navigation Jump to:search
This page contains changes which are not marked for translation.
Resources

The GENTOO_MIRRORS variable is set in /usr/share/portage/config/make.globals:

FILE /usr/share/portage/config/make.globals
# Default distfiles mirrors. This rotation has multiple hosts and is reliable.
# Approved by the mirror-admin team.
GENTOO_MIRRORS="http://distfiles.gentoo.org"
 
#            *****************************
#            **  DO NOT EDIT THIS FILE  **
# ***************************************************
# **** CHANGES TO make.conf *OVERRIDE* THIS FILE ****
# ***************************************************

It can be overwritten with an entry in /etc/portage/make.conf.

mirrorselect is a tool for managing such entry. That entry can hold a space-delimited list of Gentoo source mirrors to check before downloading from the URL defined in an ebuild or downloading a snapshot (webrsync).

FILE /etc/portage/make.confTwo mirror locations in make.conf
GENTOO_MIRRORS="https://mirrors.evowise.com/gentoo/ https://mirrors.lug.mtu.edu/gentoo/ http://distfiles.gentoo.org"

Available URLs can be found on Gentoo source mirrors.

Tip
It is a better practice to configure multiple addresses and using http://distfiles.gentoo.org as a fallback. If only one address is configured and it cannot be accessed, the source package will be retrieved from the SRC_URI address configured in the ebuild.

Choosing a fast mirror

See the Select the Gentoo source mirror(s) section of the Mirrorselect article.

See also

External resources