Curl - Install curl from source

by
Jeremy Canfield |
Updated: November 25 2024
| Curl articles
Use wget to download the curl TAR archive.
wget https://curl.se/download/curl-8.9.1.tar.gz
Let's use the TAR command to extract the TAR archive.
tar -zxpf curl-8.9.1.tar.gz
And move into the extracted directory.
cd curl-8.9.1
Run the configure script to configure curl.
./configure --prefix=/usr/local/bin --with-openssl
Run make.
make
And finally run make install.
make install
And verify that the curl CLI is working as expected.
~]$ /usr/local/bin/curl --version
curl 8.9.1 (x86_64-pc-linux-gnu) libcurl/8.9.1 OpenSSL/1.1.1k-fips zlib/1.2.11 zstd/1.4.4 OpenLDAP/2.4.46
Release-Date: 2024-07-31
Protocols: dict file ftp ftps gopher gophers http https imap imaps ipfs ipns ldap ldaps mqtt pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS HSTS HTTPS-proxy IPv6 Largefile libz NTLM SSL threadsafe TLS-SRP UnixSockets zstd
Did you find this article helpful?
If so, consider buying me a coffee over at