Using netselect-apt to find the best apt mirror

Netselect-apt is a tool very useful to find the fastest apt mirror from official debian list. It is based on netselect ( http://www.worldvisions.ca/~apenwarr/netselect/ )

Installation with apt-get
eva:~# apt-get install netselect-apt
[...]
The following extra packages will be installed:
  netselect
The following NEW packages will be installed:
  netselect netselect-apt
[...]
Example of use of netselect-apt to check the best test version mirror
eva:~# netselect-apt test
Retrieving the list of mirrors from www.debian.org...
--18:46:36--  http://www.debian.org/mirror/mirrors_full
           => `mirrors_full'
[...]
Choosing a main Debian mirror using netselect.
netselect: unknown host debian.kida.net
[...]
Running netselect to choose 1 out of 303 addresses.
The fastest server seems to be:
        http://ftp.kulnet.kuleuven.ac.be/debian/

Choosing a non-US Debian mirror using netselect.
netselect: unknown host debian.efis.ucr.ac.cr
netselect: unknown host debian.serveftp.net
netselect: unknown host dennou-t.ms.u-tokyo.ac.jp
netselect: unknown host debian.luxadmin.org
netselect: unknown host debian.mps.krakow.pl
netselect: unknown host debian.psu.ru
Running netselect to choose 1 out of 237 addresses.
[...]
The fastest non-US server seems to be:
        http://debian.fastweb.it/debian-non-US/

Writing the sources.list in the current directory.
Done.
The new sources.list file created in current directory can be reviewed and inserted in the working configuration
eva:~# cat sources.list
# the main Debian packages.  Uncomment the deb-src line if you
# want 'apt-get source' to work with most packages.
deb http://ftp.kulnet.kuleuven.ac.be/debian/ test main contrib non-free
# deb-src http://ftp.kulnet.kuleuven.ac.be/debian/ test main contrib non-free

# the non-US Debian packages.  Uncomment the deb-src line if you
# want 'apt-get source' to work with non-US packages.
deb http://debian.fastweb.it/debian-non-US/ test/non-US main contrib non-free
# deb-src http://debian.fastweb.it/debian-non-US/ test/non-US main contrib non-free

Privacy Policy