How to Install Curl on Ubuntu 18.04

r00t June 9, 2018

Install Curl on Ubuntu 18.04

In this tutorial we are going to learn how to install Curl on Ubuntu 18.04. We will also install and configure its prerequisites. Curl is used in command lines or scripts to transfer data with URL syntax. curl is used in command lines or scripts to transfer data. curl supports DICT, FILE, FTP, FTPS, Gopher, HTTP, HTTPS, IMAP, IMAPS, LDAP and many more.

I recommend to use a minimal Ubuntu server setup as a basis for the tutorial, that can be a virtual or a root server image with an Ubuntu 18.04 LTS minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.

Install Curl on Ubuntu 18.04

Step 1. First, ensure your system and apt package lists are fully up-to-date by running the following:

apt-get update -y
apt-get upgrade -y

Step 2. Installing Curl on Ubuntu.

Method 1.

Use the following commands to install curl by using the apt-get install command:

apt-get install curl

If you wish to install PHP-Curl on Ubuntu, use:

apt-get install php-curl

Method 2.

Run the following set of commands to install curl 7.60.0 on Ubuntu 18.04 LTS in Terminal:

tar -xvf curl-7.60.0.tar.gz
cd curl-7.60.0/
sudo make install

Once installed, verify curl using the command:

curl --version

Step 3. Using CURL.

You can check whether a URL is valid or not with CURL:

curl -l

You can downloading a Webpage with CURL:


You can downloading a File with CURL:

curl -O FILE_URL

Congratulation’s! You have successfully install and configure Curl on your Ubuntu 18.04 Bionic Beaver server. Thanks for using this tutorial for installing Curl on Ubuntu system.

The Tags:

Leave a Comment

Comments are closed.