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.

Two small things before you go

If something didn’t work on your setup, leave a comment and tell me which distro and version you’re on. I read every one, and most of these articles got better because a reader pointed out what was missing.

And if it did work, share it. TecMint has stayed free for 14 years because people pass these articles around, and that traffic is what pays for writing the next one.

Leave a comment
Get two free Linux courses

Learn the Linux basics with two free courses and join 34,000+ readers getting practical TecMint tutorials and selected Pro TecMint articles every week.

Pro TecMint
Get lifetime access for $99

If you want to go beyond the free tutorials, Pro gives you 18 courses, 5 ebooks, and every future course I add. One payment, lifetime access, no renewals.

James Kiarie
James Kiarie
Contributor
About the author

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.

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.