This is Gentoo's testing wiki. It is a non-operational environment and its textual content is outdated.

Please visit our production wiki at https://wiki.gentoo.org

/etc/portage/mirrors

From Gentoo Wiki (test)
Jump to:navigation Jump to:search

/etc/portage/mirrors is a file that is used to modify mirror behavior. It is useful for defining a local mirror that can contain fetch-restricted packages when using multiple Gentoo machines.

Portage will check the /etc/portage/mirrors file before looking at GENTOO_MIRRORS in /etc/portage/make.conf

Example

CODE Portage mirror example
# A list of local, private mirrors used by a company
local ftp://192.168.0.3/mirrors/gentoo http://192.168.0.4/distfiles

# People in Japan would want to use the Japanese mirror first
sourceforge http://keihanna.dl.sourceforge.net/sourceforge

# People in Tawain would want to use the local GNU mirror first
gnu ftp://ftp.nctu.edu.tw/UNIX/gnu/

See also

External resources