Managing PEAR

Some more stuff that belongs in a wiki. These are some notes on PEAR, the PHP Extension and Application Repository.

PEAR is most useful when a required php module, or a current enough version of a module, isn’t available in your distribution’s package repository. Modules in the PECL (PHP Extension Community Library) repository can also be installed and managed using the pear utility.

To find all PEAR modules installed on your system:

pear list

What version of pear?

pear version

Other commands:

pear install
pear uninstall
pear upgrade
pear info

All the above require the name of a module as an argument.

Find the path where modules are installed:

pear config-get php_dir

For more see the PEAR Manual.

This entry was posted in Development, System Administration on by .

About phil

My name is Phil Lembo. In my day job I’m an enterprise IT architect for a leading distribution and services company. The rest of my time I try to maintain a semi-normal family life in the suburbs of Raleigh, NC. E-mail me at philipATlembobrothersDOTcom. The opinions expressed here are entirely my own and not those of my employers, past, present or future (except where I quote others, who will need to accept responsibility for their own rants).