How to list all versions of a pecl package

Viewed 5655

Is it possible to list all versions of a pecl package?

pecl search xdebug, for example, only lists the latest 3.0.1 version. But I'm wanting the latest 2.x version.

3 Answers

You can use pecl list to list all installed packages, which will return something like:

Installed packages, channel pecl.php.net:
=========================================
Package    Version State
pdo_sqlsrv 5.9.0   stable
redis      5.3.3   stable
sqlsrv     5.9.0   stable

Or, you can use pecl info {package} to list information about a specific package.

So far as I know, you cannot list all available versions directly from command line. Your best bet, is just heading over to pecl.php.net and searching for your package, which will list all package versions, along with their release dates.

You can try this:

pecl install xdebug-2.9.8
Related