How to install and use Ookla Speedtest CLI on Debian/Ubuntu
Posted: Tue Dec 09, 2025 12:05 pm
Here is a quick guide on how to install and use the official Ookla Speedtest CLI on Debian/Ubuntu based systems.
1. Add Ookla Speedtest repository
2. Install Speedtest CLI
3. List available Ookla servers
This will print a list of the closest Ookla servers. The first column in the output is the server ID.
4. Run speed test against a specific server
Replace [SERVER_ID] with the ID from the list above:
Example:
That is all, you now have a simple way to test network speed directly from your server’s terminal using specific Ookla servers.
1. Add Ookla Speedtest repository
Code: Select all
curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh | sudo bash
Code: Select all
sudo apt install speedtest
Code: Select all
speedtest -L
4. Run speed test against a specific server
Replace [SERVER_ID] with the ID from the list above:
Code: Select all
speedtest -s [SERVER_ID]
Code: Select all
speedtest -s 12345