How to find the fastest Debian mirror for you?

Posted: April 12, 2011 in Administration, Debian, Debian package, Networking, Tricks
Tags: , , ,

Netselect-apt is very helpful to find which Debian mirror is the fastest one to download the latest packages or to install ones very quickly. To install it :

root@localhost:~# apt-get install netselect-apt

This package needs netselect to work successfully. neselect-apt will download the list of Debian mirrors and will ping them in a special manner thanks to the netselect command.

Here is the kind of answer you can see after running netselect-apt :

netselect: 6 (6 active) nameserver request(s)…
Duplicate address 150.65.7.130 (ftp://ftp.jaist.ac.jp/pub/Linux/Debian/, ftp://ftp.jp.debian.org/debian/); keeping only under first name.
netselect: 4 (4 active) nameserver request(s)…
Duplicate address 140.110.123.9 (ftp://ftp.twaren.net/debian/, ftp://ftp.ncnu.edu.tw/debian/); keeping only under first name.
Running netselect to choose 1 out of 319 addresses.
………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………
The fastest server seems to be:
ftp://ftp.de.debian.org/debian/

Some useful options can be used :

-f : replace HTTP mirrors by FTP mirrors.

-n : will add non-free section to the fastest mirror found

a source.list file is generated in your home directory. If you want to use it instead of the current one :

root@localhost:~# mv  /etc/apt/sources.list /etc/apt/sources.list.save

root@localhost~#cp  $HOME/sources.list /etc/apt/

root@localhost:~# apt-get update

$HOME : it stands for your own home directory where the sources.list file has been generated by netselect-apt.

More information :

Debian package description for netselect-apt

Official website for the netselect program

About these ads
Comments

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s