ここにあるPearコマンドは、私がPearを使う際よく使うコマンドを掲載しています。これら以外にもPearに指定できる 引数はあります。
# pear help
# pear help options コマンド名
# pear config-set http_proxy ホスト:ポート
# pear install Auth
# pear list INSTALLED PACKAGES: =================== PACKAGE VERSION STATE Archive_Tar 1.3.1 stable Auth 1.2.3 stable Auth_HTTP 2.1.6 stable Benchmark 1.2.3 stable Console_Getopt 1.2 stable DB 1.7.6 stable HTML_Common 1.2.1 stable HTML_QuickForm 3.2.4pl1 stable HTML_QuickForm_Controller 1.0.4 stable Mail 1.1.4 stable Net_SMTP 1.2.6 stable Net_Socket 1.0.6 stable PEAR 1.3.5 stable PHPUnit 1.2.3 stable XML_Parser 1.2.6 stable XML_RPC 1.2.2 stable
インストールしたPearパッケージとPearサーバー(REMOTE)のパッケージを比較し 更新されているパッケージを表示します。
# pear list-upgrades AVAILABLE UPGRADES (STABLE): ============================ PACKAGE LOCAL REMOTE SIZE Benchmark 1.2.3 (stable) 1.2.4 (stable) 7.4kB HTML_Common 1.2.1 (stable) 1.2.2 (stable) 4.2kB HTML_QuickForm 3.2.4pl1 (stable) 3.2.5 (stable) 96kB HTML_QuickForm_Controller 1.0.4 (stable) 1.0.5 (stable) 16.1kB Mail 1.1.4 (stable) 1.1.9 (stable) 16.1kB Net_SMTP 1.2.6 (stable) 1.2.7 (stable) 10.1kB PEAR 1.3.5 (stable) 1.4.6 (stable) 271kB PHPUnit 1.2.3 (stable) 1.3.2 (stable) 21kB XML_Parser 1.2.6 (stable) 1.2.7 (stable) 12.7kB XML_RPC 1.2.2 (stable) 1.4.4 (stable) 24kB
# pear upgrade Benchmark downloading Benchmark-1.2.4.tgz ... Starting to download Benchmark-1.2.4.tgz (7,587 bytes) .....done: 7,587 bytes upgrade ok: Benchmark 1.2.4
# pear upgrade-all Will upgrade html_common Will upgrade html_quickform Will upgrade html_quickform_controller Will upgrade mail Will upgrade net_smtp Will upgrade pear Will upgrade phpunit Will upgrade xml_parser Will upgrade xml_rpc downloading HTML_Common-1.2.2.tgz ... Starting to download HTML_Common-1.2.2.tgz (4,240 bytes) .....done: 4,240 bytes .....
# pear info パッケージ名
# pear list-channels
Copyright 1997-2010 BBB All rights reserved.