How to install curl on Ubuntu Linux

On most Ubuntu installations, curl is already installed. In order to check, type

curl_check.sh
curl

into your shell and press return.

If you see a message like

example.txt
curl: try 'curl --help' or 'curl --manual' for more information

curl is already installed and you don’t need to do anything.

In case you see this message:

example.txt
Command 'curl' not found, but can be installed with:

apt install curl
Please ask your administrator.

or (more rarely) this message:

example.txt
-bash: /usr/bin/curl: No such file or directory

you can install curl by copying

example.sh
sudo apt install curl

into your shell and pressing return.


Check out similar posts by category: Linux