Skip to content

Instantly share code, notes, and snippets.

@AnmolTomer
Last active November 2, 2019 11:09
Show Gist options
  • Save AnmolTomer/fd999f1ec445a7e38ffaba703b7345b2 to your computer and use it in GitHub Desktop.
Save AnmolTomer/fd999f1ec445a7e38ffaba703b7345b2 to your computer and use it in GitHub Desktop.
fast.com or Ookla speedtest on CLI - nice and easy :-)

Ubuntu

export INSTALL_KEY=379CE192D401AB61
# Ubuntu versions supported: xenial, bionic
# Debian versions supported: jessie, stretch, buster
export DEB_DISTRO=$(lsb_release -sc)
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $INSTALL_KEY
echo "deb https://ookla.bintray.com/debian ${DEB_DISTRO} main" | sudo tee  /etc/apt/sources.list.d/speedtest.list
sudo apt-get update
# Other non-official binaries will conflict with Speedtest CLI
# Example how to remove using apt-get
# sudo apt-get remove speedtest-cli
sudo apt-get install speedtest

macOS

brew update
brew install speedtest --force

Fedora/CentOS/Redhat

wget https://bintray.com/ookla/rhel/rpm -O bintray-ookla-rhel.repo
sudo mv bintray-ookla-rhel.repo /etc/yum.repos.d/
# Other non-official binaries will conflict with Speedtest CLI
# Example how to remove using yum
# rpm -qa | grep speedtest | xargs -I {} sudo yum -y remove {}
sudo yum install speedtest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment