我正在使用 CentOS 6.4 (centos-release-6-4.el6.centos.10.x86_64)。我正在尝试将 php 版本从5.3.3到5.4.4通过使用:
yum upgrade php-mysql php-devel php-gd php-pecl-memcache php-pspell php-snmp php-xmlrpc php-xml
和
yum upgrade php
...但这是我收到的唯一消息:
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.netnitco.net
* extras: mirror.wiredtree.com
* updates: mirror.thelinuxfix.com
Setting up Update Process
No Packages marked for Update
我已经跑了:
yum update
一切正常。我还检查了排除项php-*
,/etc/yum.conf
但什么也没发现。有什么想法吗?谢谢!
更新:解决方案
谢谢@mirkobrankovic我最终这样做了(在 64 位操作系统上):
wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -Uvh remi-release-6*.rpm
yum --enablerepo=remi upgrade php-mysql php-devel php-gd php-pecl-memcache php-pspell php-snmp php-xmlrpc php-xml
答案1
答案2
要将 PHP 5.3.3 更新至 5.4.4:
wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -Uvh remi-release-6*.rpm
yum --enablerepo=remi upgrade php-mysql php-devel php-gd php-pecl-memcache php-pspell php-snmp php-xmlrpc php-xml