Follow the instructions at PEAR installation and download PEAR package.
wget http://pear.php.net/go-pear.phar
Install PEAR and specify the prefixes when propmted: for example, use /usr/local
as prefix and /usr/local/etc/pear.conf
as PEAR configuration file.
php go-pear.phar
After installation, you can optionally add /usr/local/bin
to your shell's PATH. In order to use PEAR, you must always provide the config file as a command-line argument (or PEAR will use the system's default path):