Online
 
Friday, 09 January 2009
 
 
More article:
Related Content:

Php - Using the PEAR Package Manager
 
Article Index
Php - Using the PEAR Package Manager
Page 2
Page 3
Page 4
 

As an alternative, there is also the pear upgrade-all command, which downloads and installs all available upgrades.

Uninstalling Packages

Sometimes it may be necessary to remove a package from the local PEAR installation. For this case, the PPM includes an uninstall command:

$> pear uninstall Cache
uninstall ok: Cache

 

If uninstall is a success, it displays a message to that effect. Otherwise, if other packages are dependent upon the one being removed, a dependency message will be displayed. If the dependency is considered optional, it will proceed with the removal. If it is a required dependency, uninstall will fail.

NOTE

Be aware that the PPM does not know whether the code in applications on the machine uses a PEAR package. It tests only known package dependencies. If a package is an optional dependency or has no dependencies, it will remove it regardless of whether any code uses it.


Alternative Installation Methods

The pear install command is versatile. It does not need to connect to to download packages. Because PEAR is a standard of coding and a system for distribution, other developers may develop packages according to the PEAR package standards and release them separately from the main repository. For the most part, these developers end up submitting a proposal to the PEAR Proposal system (PEPr), so there are few places outside of PEAR where these packages may be found, but they are therejust do a search for them.

To install any package that is not included in the PEAR database or to install packages by an alternative method, either download the gzipped file, or use the URL to install it. The install command works the same in both ways:

pear install package.tgz
pear install http://example.net/path/to/package

 

You may also unzip the gzipped file and install the package using its package.xml file:

pear install /path/to/package.xml

 

This is particularly helpful to developers for testing packages or for preparing packages for use with other package managers such as RPM Package Manager (RPM).



TIP

To see all available PPM actions, type pear help. To see the help file for a particular command, type pear help command_name.



Tags: Add more tags...,
This entry was posted on . You can follow any responses to this entry through the RSS 2.0 feed. You can leave a comment. Tags: Simple PHP, Pear, Easy PHP, PHP Tutorial, PHP MySQL, XSLT, Sap Tutorial, CSS Tutorial, XSL FO Java, SQL Tutorial.
Users' Comments (0)

Comment an article
  Name
  E-mail
   Title
Available characters: 4000
 Notify me of follow-up comments
This image contains a scrambled text, it is using a combination of colors, font size, background, angle in order to disallow computer to automate reading. You will have to reproduce it to post on my homepage
Enter what you see:

No comment posted

Mobile Wallpaper 72
Statistic


Last Post

 
Top! Top!