VPS Speedtest Tutorial (Official Ookla CLI)
This tutorial shows how to install the official Ookla Speedtest CLI with xyz.sh/speedtest and run one test. The test contacts Ookla servers and is subject to Ookla's own terms.
$ curl -fsSL xyz.sh/speedtest | bash
Details · xyz.sh/speedtest · Last updated:
Steps
As root, run: curl -fsSL xyz.sh/speedtest | bash
If the official CLI is missing, the script downloads the official architecture-specific tarball from https://install.speedtest.net/app/cli (currently 1.2.0), verifies its SHA256, and installs it to /usr/local/bin/speedtest. No apt/dnf repository is added.
Before the test, it prints links to Ookla's license and privacy policy. Only after you confirm (or use -y after reading the notice) does it run speedtest --accept-license --accept-gdpr. See https://www.speedtest.net/terms and https://www.speedtest.net/about/privacy.
To install without testing: bash -s -- --install-only. To uninstall: bash -s -- --uninstall.
Uninstall
Run curl -fsSL xyz.sh/speedtest | bash -s -- --uninstall, or delete /usr/local/bin/speedtest. License acceptance may be stored in ~/.config/ookla. If an older package-manager install still exists, also run apt-get/dnf/yum remove speedtest.