title besides title

 

Sunday, November 25, 2012

PHP : PEAR - [21.8] Uninstalling PEAR Packages

21.8.1 Problem

You wish to remove a PEAR package from your system.

21.8.2 Solution

The uninstall command tells the PEAR package manager to delete packages:
% pear uninstall HTML_Common
uninstall HTML_Common ok

21.8.3 Discussion

Uninstalling a package removes it completely from your system. If you want to reinstall it, you must begin as if the package was never installed. PEAR doesn't warn you if you try to remove a package that's dependent on another package, so be careful when you uninstall.
There is no way to automatically roll back an upgrade to an earlier version of a package using uninstall. Also, PEAR complains if you try to install an earlier version over a later one. To force PEAR to overwrite a newer version, use install -f or install --force:
% pear install --force Net_URL
downloading Net_URL-1.0.4.tgz ...
...done: 3,540 bytes
install ok: Net_URL 1.0.4
The short command for uninstall is un.