mirrorselect

From Gentoo Wiki
Jump to: navigation, search

mirrorselect provides a nice interface to select the mirrors you want.

Installation

Install app-portage/mirrorselect:

root #emerge --ask app-portage/mirrorselect

Usage

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.

mirrorselect will not create the /etc/portage/repos.conf/gentoo.conf file automatically. If it does not exist, it will default to the using the old make.conf SYNC setting which has been deprecated. If it does not exist:

root #mkdir /etc/portage/repos.conf
root #cp /usr/share/portage/config/repos.conf /etc/portage/repos.conf/gentoo.conf
Note
For additional repos.conf documentation and configuration please refer to: Portage/Sync#Portage_configuration

Then proceed with using the mirrorselect utility.

Just navigate to the mirrors of choice and press Space to select one (or more) mirrors.

root #mirrorselect -i -o >> /etc/portage/make.conf
  • Find a Gentoo rsync mirror:
root #mirrorselect -i -r
  • Find 3 fastest servers by downloading 100K from each. This command will use all available mirrors in the list:
root #mirrorselect -s3 -b10 -D

Please consider using one of these additional options to limit the available mirrors in the list it tests.

Server type selection (choose at most one):

    -c COUNTRY, -country COUNTRY
                       only use mirrors from the specified country NOTE:
                       Names with a space must be quoted eg.:  -c 'South
                       Korea'
   -F, --ftp           ftp only mode. Will not consider hosts of other types.
   -H, --http          http only mode. Will not consider hosts of other types
   -r, --rsync         rsync mode. Allows you to interactively select your
                       rsync mirror. Requires -i or -a to be used.
    -R REGION, -region REGION
                       only use mirrors from the specified region NOTE: Names
                       with a space must be quoted eg.:  -R 'North America'
   -4, --ipv4          only use IPv4
   -6, --ipv6          only use IPv6