Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to upgrade php cURL to version 7.36.0?

I have php curl 7.19.7 on my CentOS server, but I need to upgrade to 7.36.0.

I tried:

yum update php-curl

But I got:

Loaded plugins: downloadonly, fastestmirror
Loading mirror speeds from cached hostfile
 * epel: mirror.t-home.mk
Setting up Update Process
No Packages marked for Update
like image 712
zafirov Avatar asked Feb 13 '15 08:02

zafirov


People also ask

What is the latest version of cURL?

What's the latest curl? The most recent stable version is 7.86.0, released on 26th of October 2022. Currently, 73 of the listed downloads are of the latest version. Where's the code?

What is PHP cURL extension?

cURL is a PHP extension that allows you to use the URL syntax to receive and submit data. cURL makes it simple to connect between various websites and domains. Obtaining a copy of a website's material. Submission of forms automatically, authentication and cookie use.

What is Curlopt_returntransfer in cURL?

CURLOPT_RETURNTRANSFER. true to return the transfer as a string of the return value of curl_exec() instead of outputting it directly. CURLOPT_SASL_IR. true to enable sending the initial response in the first packet. Added in cURL 7.31.


2 Answers

Use the city-fan repo ( part of the curl mirror http://curl.haxx.se/download.html#LinuxRedhat)

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

You can check for the latest version here.

This currently updates curl from 7.19 to 7.40

like image 196
rezizter Avatar answered Oct 23 '22 01:10

rezizter


You can try this, it worked for me on RHEL7

  1. create a new file /etc/yum.repos.d/city-fan.repo
  2. paste in it:

        [CityFan]
        name=City Fan Repo
        baseurl=http://www.city-fan.org/ftp/contrib/yum-repo/rhel$releasever/$basearch/
        enabled=1
        gpgcheck=0
    
  3. run

        yum clean all
        yum install curl 
    
like image 8
carlomas Avatar answered Oct 23 '22 00:10

carlomas