Command line installer

Prerequesites

The following description requires the latest version of the PEAR package manager to be installed.

The command line installer is the easiest way to install PEAR packages on your system: It connects to the PEAR package server via a simple HTTP connection, loads the package on your system and installs it in the desired location.

Fully-automatic installation

Using the command line installer is pretty straightforward and easy to use. Simply run the following line on your shell:


$ pear install <package>
      

<package> has to be replaced with the name of the package you want to install (e.g. HTTP_Upload). To get a list of the available packages, you can point your browser to the PEAR package browser or you can run:


$ pear list-remote-packages
      

This command returns a list of all packages that are available in PEAR at the moment.

Semi-automatic installation

If you have downloaded a package release from pear.php.net as a gzipped tar archive, you can also install it locally. To do this, run the following line on your shell:


$ pear install <file>.tgz
      

This command will automatically install the package and does not require an online connection. <file>.tgz has to be replaced with the name of the downloaded file.