Pear的命令行

Pear的命令行

作者:admin 时间:2007-05-28 分类:PHP 评论:0条 浏览:1531

Pear是PHP扩展和应用库(“PHP Extension and Application Repository”)的缩写,注意它不是鸭梨,尽管和该水果的发音相同。在安装好php之后,缺省情况下会自动安装pear的部分程序库,我们看看这种情况下如何自行安装更多的应用库。

全自动安装

很简单,只用一行。

CODE:

pear install <package>

<package>应当是你要安装的库名,可以到Pear的站上浏览,相当丰富。也可以用命令行直接查看:

pear remote-list

提示:使用”-o”参数能够自动安装必需的依赖应用库。

手动安装

如果你直接在pear站上下载了gzip的安装包,可以采用这种安装形式。pear会自动安装这个应用库,不再链接到网上去下载。

pear install <file>.tgz

下面是命令清单


Command Description
build Build the extension
from source
bundle Download and unpack
a PECL extension
channel-add Add a Channel (PEAR
1.4+)
channel-alias Specify an alias to
a channel name (PEAR 1.4+)
channel-delete Remove a channel
from the list (PEAR 1.4+)
channel-discover Initialize a channel
from its server name (PEAR 1.4+)
channel-info Retrieve information
on a channel (PEAR 1.4+)
channel-update Update an existing
channel (PEAR 1.4+)
clear-cache Clear the XML-RPC
cache
config-create Create a default
configuration file (PEAR 1.4+)
config-get Echo a specific
configuration setting
config-help Show information
about a setting
config-set Set a specific
configuration setting value
config-show Show all
configuration setting values
convert Convert a
package.xml 1.0 format to package.xml 2.0 format
(PEAR 1.4+)
cvsdiff Execute and display
a “cvs diff -u” on all files
within the package
cvstag Set a CVS release
tag
download Download a package
but not install it
download-all Downloads every
available package
info Display information
about a package
install Install a package,
will report with success or failure
list List installed
packages
list-all List all packages,
packaged and/or available
list-channels List available
channels (PEAR 1.4+)
list-files List files in an
installed package (PEAR 1.4+)
list-upgrades List available
upgrades for the installed packages
login Connects and
authenticates to the remote PEAR server
logout Logs out from the
remote PEAR server
makerpm Builds a RPM spec
file from a PEAR package
package Build a package
package-dependencies Show package
dependencies
package-validate Validate package
consistency
remote-info Information about
remote packages
remote-list List remote
packages
run-scripts Run post-install
scripts bundled with a package (PEAR 1.4+)
run-tests Run regression
tests
search Search the remote
package database
shell-test Do a shell script
test
sign Sign a package
distribution file
uninstall Uninstall and remove
a package
update-channels Update the channel
list (PEAR 1.4+)
upgrade Upgrade a package to
the current version (see also: preferred_state)
upgrade-all Upgrade all packages
(see also: list-upgrades)

参考

原创文章,转载请注明: 转载自www.webmaster.me

本文链接地址: Pear的命令行

标签:

相关推荐
更多

发表评论

电子邮件地址不会被公开。 必填项已用*标注

*