Update/Install Latest Curl Version on RHEL 8/RHEL 7/CentOS stream 8/9 CentOS 7 – CWP/VestaCP/Cpanel/Plesk

In this tutorial we’ll upgrade/update/install latest curl version on EL OS platform (redhat/centos). You can also rely on the current OS curl version as it is updated regularly basis with security patches only, if you’re still not satisfied and want the latest features and updates just follow this guide to update curl to latest version.

Short Description on curl :

curl is a command line tool and library for transferring data with URL syntax, supporting HTTP, HTTPS, FTP, FTPS, GOPHER, TFTP, SCP, SFTP, SMB, TELNET, DICT, LDAP, LDAPS, FILE, IMAP, SMTP, POP3, RTSP and RTMP. libcurl offers a myriad of powerful features. curl is used in command lines or scripts to transfer data. It is also used in cars, television sets, routers, printers, audio equipment, mobile phones, tablets, settop boxes, media players and is the internet transfer backbone for thousands of software applications affecting billions of humans daily.

Let’s get started with the upgrade process :

Update Curl on RHEL 7 / CentOS 7  (currently no update for curl in centos 8):

rpm -Uvh http://www.city-fan.org/ftp/contrib/yum-repo/rhel7/x86_64/city-fan.org-release-3-8.rhel7.noarch.rpm
yum install -y yum-utils
yum-config-manager --disable city-fan.or
yum --enablerepo=city-fan.org install libcurl libcurl-devel

Update Curl on RHEL 8 / CentOS 8 :

rpm -Uvh http://www.city-fan.org/ftp/contrib/yum-repo/rhel8/x86_64/city-fan.org-release-3-8.rhel8.noarch.rpm
dnf install -y yum-utils
dnf-config-manager --disable city-fan.org
dnf --enablerepo=city-fan.org install libcurl libcurl-devel curl

Update Curl on RHEL 9 / CentOS 9 :

rpm -Uvh http://www.city-fan.org/ftp/contrib/yum-repo/rhel9/x86_64/city-fan.org-release-3-8.rhel9.noarch.rpm
dnf install -y yum-utils
dnf-config-manager --disable city-fan.org
dnf --enablerepo=city-fan.org install libcurl libcurl-devel curl

Done you’ve successfully updated your curl version on your EL OS.

To check the Version of the Curl via command line type in this command :

curl -V

Example output :

curl 7.84.0 (x86_64-redhat-linux-gnu) libcurl/7.84.0 NSS/3.67 zlib/1.2.7 libpsl/0.20.2 (+libidn2/2.
.2) libssh2/1.10.0 nghttp2/1.33.0 OpenLDAP/2.4.44
Release-Date: 2022-06-27
Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtsp
cp sftp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS GSS-API HSTS HTTP2 HTTPS-proxy IPv6 Kerberos Largefile libz NTLM NTLM_W
PSL SPNEGO SSL UnixSockets

How to Update curl to future version :

For stability reason it will not updated via yum update command as the repo is disabled you can run this following command to update curl manually ensure you’ve followed upper mentioned steps:

yum --enablerepo=city-fan.org install curl libcurl libcurl-devel libmetalink libpsl libssh2 libssh2-devel
or
yum --enablerepo=city-fan.org update curl libcurl libcurl-devel libmetalink libpsl libssh2 libssh2-devel

Isn’t it as simple as pie? let me know about your experiences with the upgrade process via comment.

Back to top button