How to install curl on CentOS 9 Stream

Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"

Hello, friends. In this post, you will learn how to install curl on CentOS 9 Stream.

Introduction

cURL is a command available on most Unix-based systems. The main function of cURL is to interact via protocols with URLs. In this way, we can download files and do all kinds of tests.

curl is used in command lines or scripts to transfer data. curl is also used in cars, television sets, routers, printers, audio equipment and many more.

One of the great advantages of cURL is that it is open source and with a friendly license, we can use it in almost any project.

Let’s install it on CentOS 9 Stream.

Install cURL on CentOS 9 Stream

cURL is one of the most popular tools on Linux, that’s why we can install it on almost any Linux distribution. The procedure is simple.

First open a terminal or connect via SSH to the server.

Then proceed to update the whole distribution

sudo dnf update

Now thanks to the official repositories, you can download cURL with the following command

sudo dnf install curl

You can then verify the installed version with the following command

curl --version
curl on CentOS 9 Stream
curl on CentOS 9 Stream

Now you can use it without any problems. One of the most common uses is to download files, you can use the following syntax.

curl -o [file-name] [URL-file]

For example,

curl -o file.tar https://unixcop.com/public/example.tar

Or if you want to keep the same name as the source:

curl -O https://unixcop.com/public/example.tar

And keep using it.

Conclusion

cURL is a vital tool for everyday Linux work. Many programmers and sysadmins use it almost indispensably. So today you have learned how to install it quickly and easily.

Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"
Angelo
Angelo
I am Angelo. A systems engineer passionate about Linux and all open-source software. Although here I'm just another member of the family.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest articles

Join us on Facebook