tags:

views:

1348

answers:

4

What is the command to uninstall a pear package?

+1  A: 

pear uninstall package_name

You can read about it here in the PHP Cookbook

Ólafur Waage
+1  A: 
pear uninstall [options] [channel/]<package>

So if you wanted to uninstall PHPUnit

pear uninstall phpunit/PHPUnit

Note: remember to preface with sudo or you won't have permission to uninstall anything.

Andrew
Assuming you installed pear into a root only location. It's possible to setup pear to use your local user account (something like ~/PEAR) in which case the sudo isn't needed.
Alan Storm
A: 
pear help

is the best ;)

FractalizeR
A: 

If your on a RPM Linux Distro, it's simple with YUM

yum remove php-pear*

Phill Pafford