如何卸载梨包?

时间:2009-10-14 21:51:41

标签: php pear

卸载pear包的命令是什么?

4 个答案:

答案 0 :(得分:63)

pear uninstall [options] [channel/]<package>

所以如果你想卸载PHPUnit

pear uninstall phpunit/PHPUnit

注意:请记住使用sudo作为序言,否则您将无权卸载任何内容。

答案 1 :(得分:8)

  

pear uninstall package_name

您可以阅读here in the PHP Cookbook

答案 2 :(得分:2)

如果你使用的是RPM Linux发行版,那么使用YUM

就很简单了

如果您安装了带YUM的PEAR包,您也可以使用YUM卸载。

yum install php-pear-db 

安装和

yum remove php-pear-db

删除。

答案 3 :(得分:-1)

- :补充: -

uninstall命令删除包并接受要作为参数删除的已安装包的列表。

必须使用-p或--plugin选项显式卸载

插件。插件安装在plugins_dir配置变量指定的位置,默认位于用户配置文件所在的位置(unix中为$ HOME / .pear,windows上为\ pear)。

php pyrus.phar uninstall -p PEAR2_Pyrus_Developer