You want to upgrade a package on your system to the latest version for additional functionality and bug fixes.
Find out if any upgrades are available and then tell pear to upgrade the packages you want:
% pear list-upgrades % pear upgrade -o Package_Name
Upgrading to a new version of a package is a simple task with the PEAR installer. If you know a specific package is out of date, you can upgrade it directly. However, you may also just want to check periodically to see if any new releases are available.
To do this, use the list-upgrades command, which prints out a table showing the channel server of the package, package name, local version number and state, version number and state of the remote upgrade, and size of the download of the upgrade:
% pear list-upgrades pear.php.net Available Upgrades (stable): ========================================= Channel Package Local Remote Size pear.php.net HTML_Table 1.6.1 (stable) 1.7.0 (stable) 13.7kB pear.php.net HTML_Template_IT 1.1.3 (stable) 1.1.4 (stable) 19.7kB pear.php.net Log 1.9.3 (stable) 1.9.5 (stable) 37kB pear.php.net Mail 1.1.9 (stable) 1.1.10 (stable) 16.5kB pear.php.net MDB2 2.0.0 (stable) 2.0.1 (stable) 90kB pear.php.net Pager 2.3.6 (stable) 2.4.1 (stable) 31kB pear.php.net PEAR 1.4.8 (stable) 1.4.9 (stable) 277kB pear.php.net Services_Weather 1.3.2 (stable) 1.4.0 (stable) 53kB
If you're up to date, pear prints:
Channel pear.php.net: No upgrades available
To upgrade a particular package, use the upgrade command. For example:
% pear upgrade MDB2 Did not download dependencies: pear/PEAR, use --alldeps or --onlyreqdeps to download automatically downloading MDB2-2.0.1.tgz ... Starting to download MDB2-2.0.1.tgz (91,219 bytes) .....................done: 91,219 bytes upgrade ok: channel://pear.php.net/MDB2-2.0.1
The short command for list-upgrades is lu; for upgrade it's up.
PEAR also has an RSS feed listing new and upgraded packages is available at http://pear.php.net/rss.php. An aggregated RSS feed listing new and upgraded packages available on the PEAR site and a variety of other PEAR Channels is available at http://pearified.com/planet.xml.
26.5.4. See Also
Recipes 13.12 and 26.7 for information on installing PEAR and PECL packages; Recipe 26.6 to uninstall a package; Recipe 12.12 for more on parsing RSS feeds.