Useful debian command: Netselect-Apt

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:

start it by running:

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:

and then run

Now, you would have the closest Debian mirror setup which would give the best download speeds.

3 comments for “Useful debian command: Netselect-Apt

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.