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.

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.

Each tutorial at TecMint is created by a team of experienced Linux system administrators so that it meets our high-quality standards.

Join the TecMint Weekly Newsletter (More Than 156,129 Linux Enthusiasts Have Subscribed)
Was this article helpful? Please add a comment or buy me a coffee to show your appreciation.

Got Something to Say? Join the Discussion...

Thank you for taking the time to share your thoughts with us. We appreciate your decision to leave a comment and value your contribution to the discussion. It's important to note that we moderate all comments in accordance with our comment policy to ensure a respectful and constructive conversation.

Rest assured that your email address will remain private and will not be published or shared with anyone. We prioritize the privacy and security of our users.