Today I'm going to outline some important commands related to PEAR.
These commands are nothing new which you can't find online or in PEAR site but these are something which I need every time to get things done on my workstation for any new extension.
For more information about PEAR follow this link
Here are some important commands
Check which channels are setup on your PEAR installation
Consider a channel to look for packages in current session.(add or use this channel)
Check available packages in a channel.
Install phpDocumentor2 package
List all installed packages in a channel
List all available packages in a channel
Get information of files which are installed through a package
Clear cache (I often use it when I get errors during installations)
Uninstall a package (mention complete package name otherwise it throws errors regarding package not available)
These commands are nothing new which you can't find online or in PEAR site but these are something which I need every time to get things done on my workstation for any new extension.
For more information about PEAR follow this link
Here are some important commands
Check which channels are setup on your PEAR installation
pear list-channels
Consider a channel to look for packages in current session.(add or use this channel)
pear channel-discover pear.phpdoc.org
Check available packages in a channel.
pear remote-list -c pear.phpdoc.org
Install phpDocumentor2 package
pear install phpdoc/phpDocumentor-alpha
List all installed packages in a channel
pear list -c pear.phpdoc.org
List all available packages in a channel
pear list-all
Get information of files which are installed through a package
pear list-files phpDocumentor-2.0.0b4
Clear cache (I often use it when I get errors during installations)
pear clear-cache
Uninstall a package (mention complete package name otherwise it throws errors regarding package not available)
pear uninstall phpDocumentor-2.0.0b4
No comments:
Post a Comment