Skip to content

marlboromoo/apt-select

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

apt-select

Speed up updates and upgrades by selecting a mirror with the lowest latency.

Features

  • Gets list of Ubuntu mirrors
  • Tests TCP latency to each mirror
  • Prints round trip time, status, and bandwidth of the fastest mirrors in a ranked list
  • Generates new sources.list file with user chosen mirror

Dependencies

  • Python HTML parser, BeautifulSoup

####Install BeautifulSoup

Python 2

sudo apt-get install python-bs4

Python 3

sudo apt-get install python3-bs4

Usage

Run:

./apt-select.py

For a list of arguments and options, do:

./apt-select.py --help

####Update apt

After the new sources.list file is generated, the update script can be used to backup and replace the current file:

./update.sh

About

Find Ubuntu mirrors with the lowest latency

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 88.1%
  • Shell 11.9%