Speedtest CLI is a command-line tool that lets you test your internet speed directly from the terminal. In this guide on install
Speedtest CLI on Linux, using the official Ookla version for accurate results, we cover multiple installation methods.
Step 1: Update Your System
Before installing Speedtest CLI, update and upgrade your packages to the latest versions.
Step 1.5: Install curl (if not already installed)
If curl is not installed on your system, install it with the following commands:
- Ubuntu/Debian:
sudo apt install curl
- CentOS:
sudo yum install curl
Step 2: Add the Ookla Repository
Run the following command to add the Ookla repository:
Step 3: Install Speedtest CLI
Once the repository is added, install the package:
Step 4: Verify Installation
Check if Speedtest CLI is installed by running:
speedtest --version
Step 5: Run Speedtest
Execute the following command to run a speed test:
speedtest
Quick Commands
Ubuntu/Debian
sudo apt update
sudo apt upgrade -y
curl -s https://install.speedtest.net/app/cli/install.deb.sh
sudo apt install speedtest-cli
speedtest
CentOS
sudo yum update -y
curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.rpm.sh | sudo bash
sudo yum install -y speedtest
speedtest
For instructions on running a speed test on Windows, check out our
How to Run a Speed Test for Windows guide.