Prev | Current Page 387 | Next

W. Jason Gilmore

"Beginning PHP and MySQL: From Novice to Professional"


Uninstalling a Package
If you have finished experimenting with a PEAR package, have decided to use another
solution, or have no more use for the package, you should uninstall it from the system.
Doing so is trivial using the uninstall command. The general syntax follows:
%>pear uninstall [options] package name
For example, to uninstall the Numbers_Roman package, execute the following command:
%>pear uninstall Numbers_Roman
If other packages are dependent upon the one you??™re trying to uninstall, a list of
dependencies will be output and uninstallation will fail. While you could force uninstallation
by supplying the -n (--nodeps) option, it??™s not recommended because the
dependent packages will fail to continue working correctly. Therefore, you should
uninstall the dependent packages first. To speed the uninstallation process, you can
place them all on the same line, like so:
%>pear uninstall package1 package2 packageN
Downgrading a Package
There is no readily available means for downgrading a package via the Package
Manager. To do so, download the desired version via the PEAR Web site (http://
pear.php.net/), which will be encapsulated in TGZ format, uninstall the presently
installed package, and then install the downloaded package using the instructions
provided in the earlier section ???Installing a PEAR Package.???
Summary
PEAR can be a major catalyst for quickly creating PHP applications.


Pages:
375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399