Skip to content

Building enterprise php process -part1

April 8, 2008

This is part 1 of this series. I am going to talk about some useful pear commands.

Install a package from pear

$pear install Benchmark

The -o flag ensures that the PEAR installer will automatically install any required dependencies for you. Some PEAR packages specify optional dependencies, and these are ignored if -o is specified. To have all dependencies installed automatically, use the -a flag instead. 

You can also install from remotely

$pear install -o http://whatever/pearpkg-1.1.tgz

$pear upgrade phpDocumentor

Pear Channels

PEAR introduced channels in version 1.4. This powerful feature allows you to poll repositories other than pear.php.netfor updates and dependencies.

$ pear channel-discover 

$ pear channel-info 

$ pear install -a phpunit/PHPUnit 



From → Uncategorized

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: