Install Ookla Speedtest CLI on Ubuntu 20.04

Install Ookla Speedtest CLI on Ubuntu 20.04

Speedtest CLI is a command line tool that allows to test internet bandwidth using speedtest.net service. Speedtest CLI is an official tool developed by Ookla. This tool can useful to measure performance metrics of internet connection such as latency, download speed, upload speed and packet loss.

This tutorial explains how to install Ookla Speedtest CLI on Ubuntu 20.04.

Install Speedtest CLI

Add the Speedtest CLI repository:

wget -qO - https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh | sudo bash

Install Speedtest CLI:

sudo apt install -y speedtest

After the installation is finished, we can check Speedtest CLI version:

speedtest --version

Testing Speedtest CLI

Run the speedtest command without any arguments to start internet connection performance testing:

speedtest

Command will output performance results:

...........
    Latency:     4.92 ms   (0.36 ms jitter)
   Download:   304.82 Mbps (data used: 387.9 MB)
     Upload:   278.04 Mbps (data used: 266.6 MB)
Packet Loss:     0.0%
 Result URL: https://www.speedtest.net/result/c/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX

Uninstall Speedtest CLI

If you wish to completely remove Speedtest CLI, run the following command:

sudo apt purge --autoremove -y speedtest

Remove GPG key and repository:

sudo rm -rf /etc/apt/keyrings/ookla_speedtest-cli-archive-keyring.gpg
sudo rm -rf /etc/apt/sources.list.d/ookla_speedtest-cli.list

You can also remove configuration directory:

rm -rf ~/.config/ookla

Leave a Comment

Cancel reply

Your email address will not be published.