How to Install cURL on a Linux Cloud Server?

22-02-2024 03:11:58

cURL is a file transfer tool that operates in the command line of Linux operating systems using URL syntax, first released in 1997. It supports both file uploading and downloading, making it a comprehensive transfer tool, though traditionally, cURL is referred to as a download utility. This article outlines the steps to install cURL on a Linux cloud server.

Debian/Ubuntu

First, update the operating system (this step is mandatory).

apt update && apt upgrade

Then, proceed to install cURL.

apt install curl

CentOS

Use the yum command to install cURL.

yum install curl -y

With this, cURL installation is complete. You can now use cURL to access websites like Baidu or Google to test the successful installation.

curl www.baidu.com