11.07.2015 Views

PHP MySQL - Stilson.net

PHP MySQL - Stilson.net

PHP MySQL - Stilson.net

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

www.it-ebooks.infoCHAPTER 11 • PEARIf your version of a package corresponds with the latest release, you’ll see a message that looks likethe following:pear/pear is already installed and is the same as the released version 1.9.0upgrade failedIf for some reason you have a version that’s greater than the version found in the PEAR repository(e.g., you manually downloaded a package from the package author’s Web site before it was officiallyupdated in PEAR), you’ll see a message that looks like this:Package 'PEAR' version '1..0' is installed and 1.9.0 is > requested '1.8.9',skippingOtherwise, the upgrade should automatically proceed. When completed, you’ll see a message thatlooks like the following:Starting to download PEAR-1.10.tgz (106,079 bytes)........................done: 106,079 bytesupgrade ok: PEAR 1.10Upgrading All PackagesIt stands to reason that you’ll want to upgrade all packages residing on your server, so why not performthis task in a single step? This is easily accomplished with the upgrade-all command, executed like this:%>pear upgrade-allAlthough unlikely, it’s possible that some future package version could be incompatible withprevious releases. Therefore, using this command isn’t recommended unless you’re well aware of theconsequences surrounding the upgrade of each package.Uninstalling a PackageIf you have finished experimenting with a PEAR package, have decided to use another solution, or haveno more use for the package, you should uninstall it from the system. Doing so is trivial using theuninstall command. The general syntax follows:%>pear uninstall [options] package nameFor example, to uninstall the Numbers_Roman package, execute the following command:%>pear uninstall Numbers_Roman265

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!