How to uninstall a pear package?

Andrew picture Andrew · Oct 14, 2009 · Viewed 48.6k times · Source

What is the command to uninstall a pear package?

Answer

Andrew picture Andrew · Oct 14, 2009
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.