php 如何卸载梨包?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1569221/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to uninstall a pear package?
提问by Andrew
What is the command to uninstall a pear package?
卸载梨包的命令是什么?
回答by Andrew
pear uninstall [options] [channel/]<package>
So if you wanted to uninstall PHPUnit
所以如果你想卸载 PHPUnit
pear uninstall phpunit/PHPUnit
Note: remember to preface with sudoor you won't have permission to uninstall anything.
注意:请记住开头,sudo否则您将无权卸载任何内容。
回答by ólafur Waage
pear uninstall package_name
梨卸载包名称
You can read about it here in the PHP Cookbook
您可以在 PHP Cookbook 中阅读这里
回答by Phill Pafford
回答by Gagan Gami
-: Additional :-
-: 额外的 :-
The uninstall command removes a package and accepts a list of installed packages to remove as arguments.
卸载命令删除一个包并接受要删除的已安装包列表作为参数。
Pluginsmust be explicitly uninstalled with the -p or --plugin option. Plugins are installed into the location specified by the plugins_dir configuration variable, which defaults to the same location that the user configuration file is located ($HOME/.pear in unix, \pear on windows).
必须使用 -p 或 --plugin 选项显式卸载插件。插件安装到由 plugins_dir 配置变量指定的位置,该位置默认与用户配置文件所在的位置相同(Unix 中为 $HOME/.pear,Windows 中为 \pear)。
php pyrus.phar uninstall -p PEAR2_Pyrus_Developer

