Home Linux Server How to install cURL on Ubuntu Linux

How to install cURL on Ubuntu Linux

by Thạch Phạm
Published: Last Updated on
A+A-
Reset

In this article, AZDIGI will show you how to install cURL on Ubuntu Linux.

I. Overview

cURL is a computer software project that provides libraries and command-line tools for transferring data using a variety of protocols; it was first released in 1997. It stands for “Client URL”. The original author, as well as the lead developer, is Swedish developer Daniel Stenberg.

cURL uses many support protocols such as HTTP, HTTPS, FTPS,…

Currently, most websites using WordPress source code use this tool to communicate with WordPress.org and many other websites on the internet.

However, by default, Ubuntu does not include cURL, so when we install an Ubuntu server and try to install some software using cURL, it will not work. For example, if you need to install CyberPanel, you will encounter an error as shown below.

Error: Package 'curl' has no installation candidate.
Error: Package ‘curl’ has no installation candidate.

Therefore, in this article, AZDIGI will guide you on how to install cURL on Ubuntu Linux.

II. How to install cURL on Ubuntu Linux

To install cURL on Ubuntu, we need to go through the following two steps.

Step 1: SSH into your Ubuntu server

To install cURL on Ubuntu, first, we need to SSH or access your VPS/server with root privileges. If you don’t know how to SSH into your VPS/Server, you can refer to the following tutorial:

After successfully SSH, we proceed to step 2 to execute the cURL installation commands on Ubuntu.

Step 2: Commands to install cURL on Ubuntu

We execute the following two commands in order:

AZDIGI Tutorial
sudo apt update && sudo apt upgrade
sudo apt install curl
    

Explanation of the two commands above:

  • Command 1: Update the Ubuntu server.
  • Command 2: Install the curl package on the Ubuntu server.

Here are the images when we run these two commands.

how-to-install-curl-on-ubuntu-linux
  • Command 1: Update the Ubuntu server.
  • how-to-install-curl-on-ubuntu-linux
  • Command 2: Install the curl package on the Ubuntu server.
  • During the installation process, you select Y and Enter to continue.

    Please wait for a while for the installation process to complete, we can use the following command to check the version of cURL just installed.

    AZDIGI Tutorial
    curl --version
        

    At this point, the installation of cURL on our Ubuntu is complete. And you can try the previous operation again when encountering a cURL missing error on this server.

    III. Summary

    With just two simple steps, you can install cURL on Ubuntu, thereby solving many problems in installing software through cURL.

    See more useful articles about Ubuntu at the following link:

    If you need assistance, you can contact support in the ways below:

    Đánh giá

    Tham gia nhóm hỗ trợ Server - Hosting

    Tham gia nhóm Hỗ trợ Server - Hosting & WordPress để cùng nhau hỏi đáp và hỗ trợ các vấn đề về WordPress, tối ưu máy chủ/server.

    Tham gia ngay

    Bài viết cùng chuyên mục

    AZDIGI – Không chỉ là đơn vị hàng đầu trong lĩnh vực Web Hosting và Máy chủ, chúng tôi mong muốn mang lại những kiến thức bổ ích nhất và luôn cập nhật thường xuyên cho cộng đồng người đam mê thiết kế website, công nghệ,…

    Vui lòng không sao chép nội dung nếu chưa xin phép. Designed and Developed by PenciDesign