How to Install Curl in Linux

How to Install Curl in Linux

In this article, you will learn how to install the curl command-line tool for transferring data to and from a server using various types of requests. It’s an alternative to downloading files other than using wget command.

The curl command downloads files that are served with FTP, HTTP, SCP, IMAP, and other various supported protocols. It’s an amalgamation of the words World Wide Web and it is used in Unix/Linux systems to download files and packages on the Linux terminal.

Install curl on Ubuntu/Debian

In modern systems, curl comes pre-installed. However, If you are running an instance of Ubuntu or Debian, issue the command.

# apt-get install curl

Install Curl in Debian and Ubuntu

Install Curl in Debian and Ubuntu

To verify the curl installation, run.

# dpkg -l | grep curl

Confirm Curl Installation on Debian and Ubuntu

Confirm Curl Installation on Debian and Ubuntu

Install curl on RHEL / CentOS / Fedora

To install curl on RHEL, CentOS and Fedora distros, log in via SSH as root and run the command.

# yum install curl

Install Curl in CentOS

Install Curl in CentOS

To confirm the installation of curl, run.

# rpm -qa | grep curl

Confirm Curl Installation on CentOS

Confirm Curl Installation on CentOS

Install curl on OpenSUSE

On OpenSUSE, install curl by running.

# zypper install curl

Install Curl in OpenSuse

Install Curl in OpenSuse

To confirm the installation of curl run.

# zypper se curl

Confirm Curl Installation on OpenSUSE

Confirm Curl Installation on OpenSUSE

Install curl on ArchLinux

To install Curl on ArchLinux, run.

# pacman -Sy curl

Install Curl on Arch Linux

Install Curl on Arch Linux

And finally, to confirm its installation run the command.

# pacman -Qi curl

Confirm Curl Installation on Arch Linux

Confirm Curl Installation on Arch Linux

To know more about curl command usage and examples, I suggest you read our following article that explains how you can use curl command-line utility for downloading files from the web.

  1. 15 Tips On How to Use ‘Curl’ Command in Linux

And with that, we have come to the end of this guide. In this tutorial, you learned how to install curl in different Linux distributions.

NEWEST POSTS

Our trusted sources

We only publish news from well-known cybercrime magazines via RSS. You will find here everything about hackers & cybercrime. Also you can visit the direct sources from us.

Just click on one of the buttons.

PROTECT YOURSELF

Check out our Guidebook page.  And read everything about it.  Also how to protect yourself from hacker attacks.  An all in one thing.