How to Install Curl on Ubuntu 16.04

r00t April 24, 2018

Install Curl on Ubuntu 16.04

In this tutorial we’ll learn how to install Curl on Ubuntu 16.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 16.04 minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.

Install Curl on Ubuntu 16.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.59.0 on Ubuntu 16.04 in Terminal:

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

Once installed, verify curl using the command:

curl --version

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

The Tags:

Leave a Comment

Comments are closed.