问题
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
- create a new file /etc/yum.repos.d/city-fan.repo
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
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