From all the different VPS providers I have tried I’ve most often only used the default mirrors that are installed when the VPS is provisioned which sometimes is not the closest one.
You can and update this to the geographically closest by running netselect-apt.
Netselect-apt downloads the official Debian mirror lists and tests the access speeds to find out which one is closest to you. It will then create a brand new sources.list with the result for your /etc/apt/ directory.
Installation is easy:
1 |
apt-get install netselect-apt |
start it by running:
1 |
netselect-apt |
wait while the different mirrors are tested. When it’s finished, you will end up with a sources.list in the directory where you executed the command in.
Move it to your /etc/apt/directory by executing:
1 |
mv sources.list /etc/apt/sources.list |
and then run
1 |
apt-get update |
Now, you would have the closest Debian mirror setup which would give the best download speeds.
3 comments for “Useful debian command: Netselect-Apt”