Создаем файл:
vi /etc/yum.repos.d/CentOS-Testing.repo
Со следующим контентом:
# CentOS-Testing:
# !!!! CAUTION !!!!
# This repository is a proving grounds for packages on their way to CentOSPlus and CentOS Extras.
# They may or may not replace core CentOS packages, and are not guaranteed to function properly.
# These packages build and install, but are waiting for feedback from testers as to
# functionality and stability. Packages in this repository will come and go during the
# development period, so it should not be left enabled or used on production systems without due
# consideration.
[c5-testing]
name=CentOS-5 Testing
baseurl=http://dev.centos.org/centos/$releasever/testing/$basearch/
enabled=0
gpgcheck=1
gpgkey=http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing
includepkgs=php*
Обновляемся:
yum --enablerepo=c5-testing update php*
Источник: http://wiki.centos.org/HowTos/PHP_5.1_To_5.2
лучше делать yum --enablerepo=c5-testing install php*
ReplyDeleteпотому что при update не все пакеты ставятся например новый php-mysql
Ну если так багануло, то сходить и вручную с http://dev.centos.org/centos/5/testing/x86_64/ слить требуемый пакет и воткнуть по rpm -ihv.
ReplyDelete