The procedure to install cURL on Ubuntu Linux is as follows:
- Update your Ubuntu box, run: sudo apt update && sudo apt upgrade
- Next, install cURL, execute: sudo apt install curl
- Verify install of curl on Ubuntu by running: curl --version
Let us see all commands in details.
Ubuntu install curl command
First update the system and get latest stable curl version for Ubuntu:
$ sudo apt update
$ sudo apt upgrade
Verification
Run the following command:

$ curl --version

Usage
Once installed you can use it as follows to see the headers:
Sample outputs:
$ curl -I https://www.google.co.in/
$ curl -I https://www.cyberciti.biz/
Sample outputs:
Or download a file from a server using curl itself:
You can resume broken download with the curl command as follows:
curl -o output.file http://server1.cyberciti.biz/bar.foo.txt
You can resume broken download with the curl command as follows:
curl -L -O -C - http://ftp.ussg.iu.edu/linux/centos/latest/isos/file.iso