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

by Sandy

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 8 / CentOS 8 :

rpm -Uvh http://www.city-fan.org/ftp/contrib/yum-repo/rhel8/x86_64/city-fan.org-release-2-1.rhel8.noarch.rpm
yum --enablerepo=city-fan.org install libcurl libcurl-devel

Update Curl on RHEL 7 / CentOS 7 :

rpm -Uvh http://www.city-fan.org/ftp/contrib/yum-repo/rhel7/x86_64/city-fan.org-release-2-1.rhel7.noarch.rpm
yum --enablerepo=city-fan.org install libcurl libcurl-devel

Update Curl on RHEL 6 / CentOS 6 :

# x86_64
rpm -Uvh http://www.city-fan.org/ftp/contrib/yum-repo/rhel6/x86_64/city-fan.org-release-2-1.rhel6.noarch.rpm
yum --enablerepo=city-fan.org install libcurl libcurl-devel

# i386
rpm -Uvh http://www.city-fan.org/ftp/contrib/yum-repo/rhel6/i386/city-fan.org-release-2-1.rhel6.noarch.rpm
yum --enablerepo=city-fan.org install libcurl libcurl-devel

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 :

[root@server ~]# curl -V
curl 7.65.1 (x86_64-redhat-linux-gnu) libcurl/7.65.1 NSS/3.36 zlib/1.2.7 libpsl/0.7.0 (+libicu/50.1.2) libssh2/1.8.2 nghttp2/1.31.1
Release-Date: 2019-06-05
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS GSS-API HTTP2 HTTPS-proxy IPv6 Kerberos Largefile libz Metalink NTLM NTLM_WB 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 libcurl libcurl-devel
or
yum --enablerepo=city-fan.org update libcurl libcurl-devel

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

If this post helps you in any way please consider a donation

Donate with PayPal :

md-donate

Donate with Paytm :

md-donate

You may also like

9
Leave a Reply

avatar
3 Comment threads
6 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
4 Comment authors
SandyFrankyPaulKhelan Recent comment authors
  Subscribe  
newest oldest most voted
Notify of
Khelan
Guest
Khelan

Thanks for the steps with the upgrade process here. I followed your steps but that just upgraded libcurl and not the actual cURL package. Can you pls help if there needs to be update along that side?

curl -V
curl 7.65.3 (x86_64-redhat-linux-gnu) libcurl/7.66.0 NSS/3.36 zlib/1.2.7 libpsl/0.7.0 (+libicu/50.1.2) libssh2/1.9.0 nghttp2/1.31.1

Paul
Guest
Paul

Hi, Im having problems running this on CentOS 7. It complains of broken deps.. yum –enablerepo=city-fan.org install libcurl libcurl-devel Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * city-fan.org: http://www.city-fan.org Resolving Dependencies –> Running transaction check —> Package libcurl.x86_64 0:7.29.0-54.el7 will be updated –> Processing Dependency: libcurl = 7.29.0-54.el7 for package: curl-7.29.0-54.el7.x86_64 —> Package libcurl.x86_64 0:7.53.1-2.0.cf.fc7 will be an update –> Processing Dependency: c-ares >= 1.12.0 for package: libcurl-7.53.1-2.0.cf.fc7.x86_64 –> Processing Dependency: libssh2 >= 1.8.0 for package: libcurl-7.53.1-2.0.cf.fc7.x86_64 –> Processing Dependency: libcares.so.2()(64bit) for package: libcurl-7.53.1-2.0.cf.fc7.x86_64 –> Processing Dependency: libcrypto.so.6()(64bit) for package: libcurl-7.53.1-2.0.cf.fc7.x86_64 –> Processing Dependency: libldap-2.3.so.0()(64bit) for package: libcurl-7.53.1-2.0.cf.fc7.x86_64… Read more »

Franky
Guest
Franky

The RHEL8 repo of city-fan does not contain a newer version of curl, that part of the instruction should be removed.