Steps to install cURL by using the apt-get install command on Ubuntu
Enter the following command to download the package lists from the repositories and update them:
sudo apt-get update
Enter the following command to install cURL:
sudo apt-get install curl
To verify that cURL is running correctly, enter this command:
curl --version