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.

If You Appreciate What We Do Here On TecMint, You Should Consider:

TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to search or browse the thousands of published articles available FREELY to all.

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Support Us

We are thankful for your never ending support.

James Kiarie

This is James, a certified Linux administrator and a tech enthusiast who loves keeping in touch with emerging trends in the tech world. When I'm not running commands on the terminal, I'm taking listening to some cool music. taking a casual stroll or watching a nice movie.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.