To install speedtest-cli (a command-line tool for checking internet speed) on CentOS, RHEL, or Fedora Linux, you can use the following steps:
sudo yum install python3 python3-pip
This will install python3 and pip, the Python package manager, which are required to install speedtest-cli.
speedtest-cli:pip3 install speedtest-cli
This will install the latest version of speedtest-cli available from the Python Package Index (PyPI).
speedtest-cli
This will run a speed test and print the results, indicating that speedtest-cli is installed and working correctly.