Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get specific version of a package with pecl install? [duplicate]

Tags:

xdebug

pecl

Xdebug was updated to version 3 and currently it will be installed in its latest version when I run

pecl install xdebug

This broke a Dockerfile and an XDebug setup. While I plan to upgrade to xdebug@3 in the long run, I want for now to force installing xdebug 2.9. How can I achieve that?

I tried doing

pecl install xdebug@2 

and similar approaches.

How do I list all versions of a package and how do I force installing a specific version with pecl?

like image 427
k0pernikus Avatar asked Sep 08 '25 00:09

k0pernikus


1 Answers

You you have to provide exact version via flag,

pecl install xdebug-2.9.8
like image 57
k0pernikus Avatar answered Sep 11 '25 01:09

k0pernikus