Install this PEAR package?

Can someone direct me on how to install this PEAR package to my server?

Any tips are greatly appreciated.


PEAR does not have an ‘install-all’ option, but you may wish to install all available packages. Using some command-line magic:

pear list-all | awk ‘/^pear// {print $1}’ | sed -e s@pear/@@ | xargs pear install

This will take a long time to execute. Also, if your preferred package state is ‘stable’:

pear config-get preferred_state

… then the PEAR will generate error messages for every beta package in the repositories. These messages resemble:

Failed to download pear/Console_ProgressBar within preferred state “stable”, latest release is
version 0.5.0beta, stability “beta”, use channel://"
to install

Cannot initialize ‘channel://’, invalid or missing package file
…but are harmless.

We also have a wiki article that may be of help here:

I hope this helps! :slight_smile:

Just out of curiosity, why not do your substitution in awk? Something like:


Nothing serious though. Just playing golf… I never realised that the sed script doesn’t always need to be quoted.

Because copy/pasta. The original author used quotes.

[quote=“sXi, post:4, topic:58997”]
Because copy/pasta. [/quote]

Ah, FSM strikes again.