Centos – pear on CentOS with “No Package” message

centospearPHP

I googled for hours to find a solution but couldn't find anything.

What can I do with this error? I couldn't install php-pear on centOS 6.5.

[root@server ~] # yum search php-pear
Loaded plugins: fastestmirror, versionlock
Loading mirror speeds from cached hosttile
* base: www.mirrorservice.org
* epel: www.mirrorservice.org
* extras: mirror.econdc.com
* rpmforge: www.mirrorserv1ce:org
* updates: centos.hyve.com
============================ Matched: php-pear =========================
horde-enhanced.noarch : Adds extra functionality to the horde framework

[root@server ~]# yum install php-pear
Loaded plugins: fastestmirror, versionlock
Loading mirror speeds from cached hostfile
* base: wvv.mirrorservice.org
* epel: www.mirrorserv1ce:org
* extras: mirror.econdc.com
* rpmforge: www.mirrorservice.org
* updates: centos.openitc.uk
Setting up Install Process
No package php—pear available.
Error: Nothing to do

Best Answer

After days finally I could find the answer.

Just type:

sudo nano /etc/yum.conf

And then remove php*

then type:

yum install --enablerepo remi php-pear php-devel

Good luck!