How to Install Speedtest CLI on Linux - Evoxt
Login
Register
We care about the Environment

How to Install Speedtest CLI on Linux

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.

  • Ubuntu/Debian:
    sudo apt update
    sudo apt upgrade -y
  • CentOS:
    sudo yum update -y

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-get install curl
  • CentOS:
    sudo yum install curl

Step 2: Add the Ookla Repository

Run the following command to add the Ookla repository:

  • Ubuntu/Debian:
    curl -s https://install.speedtest.net/app/cli/install.deb.sh
  • CentOS:
    curl -s https://install.speedtest.net/app/cli/install.rpm.sh

Step 3: Install Speedtest CLI

Once the repository is added, install the package:

  • Ubuntu/Debian:
    sudo apt-get install speedtest-cli
  • CentOS:
    sudo yum install -y speedtest

Step 4: Verify Installation

Check if Speedtest CLI is installed by running:

speedtest --version
Install Speedtest CLI

Step 5: Run Speedtest

Execute the following command to run a speed test:

speedtest
Install Speedtest CLI

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://install.speedtest.net/app/cli/install.rpm.sh
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.

High CPU Frequency Virtual Machines

Available Globally

Starting at

$2.99

Deploy now