mirrorselect
is a command-line tool designed to help users select the best mirror for downloading packages. It tests the speed of various mirrors and suggests the fastest one for your location.
Since the removal of netselect from the Ubuntu repositories, many users have been forced to use the mirror protocol. This protocol, while useful, only test latency/proximity using a one-sided view of the world. This leads to decent, but sub-optimal mirrors selections.
MirrorSelect performs a series of actions to ensure you get the best mirrors:
N
servers are then ranked by download speed.Features
Usage
MirrorSelect provides several command-line flags to customize its behavior:
mirrorselect [optional flags]
Command-Line Flags
-a
, --arch
: Select the CPU architecture (default: current system)-c
, --country
: Filter mirrors by ISO 3166 Alpha-2 country code (Default: Auto-Detect). Options: ISO-3166 Alpha-2 Country Codes.. US
, DE
, etc..-h
, --help
: Display the help message and exit.-m
, -max
: The max number of servers to perform download speed tests (Default 5)-p
, --protocol
: Specify the protocol to use (default: ANY). Options: http
, https
, any
.-r
, --release
: Specify the ubuntu release (Default: Current). Options: Ubuntu codenames e.g. noble
, jammy
, focal
, etc...-t
, --timeout
: Set the timeout for each mirror latency test in milliseconds (default: 500ms).-v
, --verbosity
: Show verbose information (Default: WARN) Options: DEBUG, INFO, WARN, ERROR.Examples
Select the fastest mirror using default settings:
mirrorselect
Select the fastest HTTPS mirror in the US:
mirrorselect --protocol https --country US
Bandwidth test 10 mirrors with a TCP Latency timeout of 800ms:
mirrorselect --max 10 --timeout 800
You are about to open
Do you wish to proceed?
Thank you for your report. Information you provided will help us investigate further.
There was an error while sending your report. Please try again later.
Snaps are applications packaged with all their dependencies to run on all popular Linux distributions from a single build. They update automatically and roll back gracefully.
Snaps are discoverable and installable from the Snap Store, an app store with an audience of millions.
On Arch Linux, snap can be installed from the Arch User Repository (AUR). The manual build process is the Arch-supported install method for AUR packages, and you’ll need the prerequisites installed before you can install any AUR package. You can then install snap with the following:
git clone https://aur.archlinux.org/snapd.git
cd snapd
makepkg -si
Once installed, the systemd unit that manages the main snap communication socket needs to be enabled:
sudo systemctl enable --now snapd.socket
If AppArmor is enabled in your system, enable the service which loads AppArmor profiles for snaps:
sudo systemctl enable --now snapd.apparmor.service
To enable classic snap support, enter the following to create a symbolic link between /var/lib/snapd/snap
and /snap
:
sudo ln -s /var/lib/snapd/snap /snap
Either log out and back in again, or restart your system, to ensure snap’s paths are updated correctly.
To install mirrorselect, simply use the following command:
sudo snap install mirrorselect
Browse and find snaps from the convenience of your desktop using the snap store snap.
Interested to find out more about snaps? Want to publish your own application? Visit snapcraft.io now.