cURL Installation

How to Build and Install latest cURL version on CentOS/RHEL?

Looking to build the latest cURL installation from the source?

cURL shipped with the OS may not be up-to-date, and if you need the latest version for a particular requirement, then you need to build from the source.

Just, I was testing HTTP/3 using cURL with the default shipped version on CentOS, but that didn’t work.

However, the latest cURL version (7.67) supports HTTP/3. So, I had only one option – build from the source. This is just one example; you may have some other requirement.

The following example is for 7.67 (latest as I write). But the procedure remains the same for any other version.

Here is how to cURL Installation work

Let’s get the required dependencies installed.

  • Update the system. Though this is optional, I prefer doing so. I always have up-to-date installed packages.
  • Installing the required packages
  • Download the latest cURL source – you can refer to their official download page to know the latest version.
  • Extract the downloaded gz file.
  • It would create a new folder on the present working directory

Building cURL

Once you’ve downloaded and extracted the latest cURL, its time to build them.

  • Go inside the newly created folder after extraction
  • Configure with SSL as below

You will see output something like below.

  • Let’s install them
  • It will take a few seconds to complete, and once done; you can verify the version to ensure it has installed successfully.

Verification

Use --version to see the version details.

Conclusion

You see, its easy when you have the steps. I hope this helps you install cURL from the source.

Source: Geekflare

Rahul Sharma

Rahul Sharma is a Founder of Logical IDEA and Bee Flirty. He is a Professional WP Developers, UX Designer, and Digital Marketing Expert. Previously, He Worked as a Digital Marketing Head for An eCommerce Startup. He Graduated with honors from Lovely Professional University with a Dual Degree in Information Technology.

Leave a Reply

Your email address will not be published. Required fields are marked *