How to upgrade php cURL to version 7.36.0?

我的梦境 提交于 2020-08-01 05:06:29

问题


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

回答1:


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




回答2:


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 
    



回答3:


Try the following commands:

curl-config --version
sudo rpm -Uvh http://www.city-fan.org/ftp/contrib/yum-repo/city-fan.org-release-1-13.rhel6.noarch.rpm
sudo yum install libcurl


来源:https://stackoverflow.com/questions/28495444/how-to-upgrade-php-curl-to-version-7-36-0

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!