Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've installed PEAR on Debian Lenny using apt-get install php-pear, it was installed in /usr/share/php

When I try to install anything using pear install <package> the PEAR folder is created under current user home directory and separate copy of pear is installed there.

I ended up by installing local copy of PEAR for one of the users like this:

Is any way to tell pear to install packages to system-wide repository in /usr/share/php? What is the recommended way of using system-wide PEAR copy?

share|improve this question
up vote 1 down vote accepted

I may be mistaken, but simply running pear install as root should do exactly what you want.

share|improve this answer
Unfortunatelly no, it creates folder under /root/PEAR and installs everything there – artvolk Mar 31 '10 at 12:24
Yes you are right, the root of the cause was file .pearrc in /root, when deleted it works like expected. – artvolk Mar 31 '10 at 17:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.