Inizio  >  Docs  >  Programming  >  PHP  >  Pear  
PearPear

Index

CentOs (redhat) setup

yum install php-pear.noarch
pear list
pear list-all
pear config-set http_proxy 10.18.3.39:8080
pear channel-update pear.php.net
pear config-set preferred_state beta
pear list-all|grep -i spread
pear install -a Spreadsheet_Excel_Writer

add /usr/share/pear/
and /usr/share/pear/PEAR
in /etc/php.ini
service httpd reload

Torna sù

useful commands

pear upgrade-all #aggiorna sia pear stesso che i vari packages

pear list-all # mostra tutti i packages disponibili del channel predefinito (Channel pear.php.net)

pear list #mostra i packages installati

pear list-packages #mostra tutti i packages installabili 

pear install -a Structures_DataGrid-beta #installa un packages in stato beta

pear install -a Archive_Tar-beta Cache_Lite-beta Console_Getopt-beta DB-beta DB_DataObject-beta DB_DataObject_FormBuilder-beta DB_Table-beta Date-beta HTML_Common-beta HTML_QuickForm-beta HTML_Table-beta MDB2-beta MDB2_Driver_mysql-beta OLE-beta PEAR-beta Pager-beta Spreadsheet_Excel_Writer-beta Structures_DataGrid-beta Structures_DataGrid_DataSource_Array-beta Structures_DataGrid_DataSource_CSV-beta Structures_DataGrid_DataSource_DB-beta Structures_DataGrid_DataSource_DBQuery-beta Structures_DataGrid_DataSource_DBTable-beta Structures_DataGrid_DataSource_DataObject-beta Structures_DataGrid_DataSource_MDB2-beta Structures_DataGrid_DataSource_RSS-beta Structures_DataGrid_DataSource_XML-beta Structures_DataGrid_Renderer_CSV-beta Structures_DataGrid_Renderer_HTMLSortForm-beta Structures_DataGrid_Renderer_HTMLTable-beta Structures_DataGrid_Renderer_Pager-beta Structures_DataGrid_Renderer_Smarty-beta Structures_DataGrid_Renderer_XLS-beta Structures_DataGrid_Renderer_XML-beta Structures_DataGrid_Renderer_XUL-beta XML_Parser-beta XML_RPC-beta XML_RSS-beta XML_Serializer-beta XML_Tree-beta XML_Util-beta XML_XPath-beta
pear config-show # mostra la configurazione di pear

pear config-set http_proxy 10.18.3.39:8080 #setta il proxy http

pear config-set preferred_state beta # setta il livello dei pacchetti accettati a "beta" facendo così non devo specificare più il -beta finale nell'installazione/upgrade dei pacchetti beta


Torna sù