Home netselect-apt
Post
Cancel

netselect-apt

netselect-apt is a script to create an apt sources.list file automatically by downloading the list of Debian mirrors and choosing the fastest.

Install netselect-apt

1
$ sudo apt install netselect-apt

Run netselect-apt

We can choose our debian branch stable/testing/sid for the test

1
$ sudo netselect-apt -s stable

At this point, netselect-apt will have generated a sources.list file for the fastest mirror available on the directory where we have executed it.
We can now substitute our /etc/apt/sources.list by the sources.list generated by netselect-apt or we can edit our /etc/apt/sources.list and sustitute the mirrors by the chosen ones by netselect-apt.

I always recommend to backup /etc/apt/sources.list before making changes.

Enjoy! ;)

This post is licensed under CC BY 4.0 by the author.