20

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?

k0pernikus
  • 60,309
  • 67
  • 216
  • 347

1 Answers1

41

You you have to provide exact version via flag,

pecl install xdebug-2.9.8
k0pernikus
  • 60,309
  • 67
  • 216
  • 347