简体   繁体   English

我可以将软件包安装到特定的文件夹吗?

[英]Can I PEAR to install packages to a specific folder?

Does PEAR have the ability to install packages to a user-specified folder on demand? PEAR是否有能力按需将软件包安装到用户指定的文件夹? I'd like to be able to do something like this to install a new copy of PHPUnit to a project I'm messing around with: 我希望能够执行类似的操作,以将新的PHPUnit副本安装到我正在搞乱的项目中:

pear install phpunit TARGET=~/sources/project/test/lib

Is that sort of operation supported by PEAR? PEAR支持这种操作吗? I'd like to use PEAR because of its ability to grab all of the dependencies seamlessly. 我想使用PEAR,因为它能够无缝捕获所有依赖项。

Yes, you can use custom configuration files. 是的,您可以使用自定义配置文件。 As ajreal already wrote, http://pear.php.net/manual/en/installation.shared.php contains instructions how to use custom config files. 如ajreal所写, http: //pear.php.net/manual/en/installation.shared.php包含有关如何使用自定义配置文件的说明。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM