Tutorial – Update/Install Latest Curl Version on CentOS 7x / 8x
Created On
Last Updated On
byWesAdmin
Print < Back to the Title Topic
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 dnf --enablerepo=city-fan.org install libcurl libcurl-devel curl
**not yet updated for centos 8
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.73.0 (x86_64-redhat-linux-gnu) libcurl/7.73.0 OpenSSL/1.0.1e-fips zlib/1.2.3 c-ares/1.17.1 libssh2/1.8.2 Release-Date: 2020-10-14 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp Features: AsynchDNS GSS-API HTTPS-proxy IPv6 Kerberos Largefile libz Metalink NTLM NTLM_WB 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