How to install PEAR on CentOS via yum


Installation command

# yum -y install php-pear

Confirmation of installation

# pear -V
PEAR Version: 1.9.4

Error message

If you have mistyped “pear” for “php-pear”, an error message appears and says no such package is available.

# yum -y install pear
Parsing package install arguments
No package pear available.
Nothing to do
This post is also available in other languages.