Downgrade to PHP 5.4 on Arch Linux

3.9k views Asked by At

I am running a fully updated Manjaro (Arch Linux derivative) distribution with PHP 5.5.6 installed using pacman.

Some scripts I am forced to develop with are not fully compatible with PHP 5.5 yet.

Is there an easy way to downgrade to PHP 5.4 or do I have to compile it from source?

1

There are 1 answers

0
StreakyCobra On BEST ANSWER

Yes it's possible to downgrade packages. Short version of possibilities:

  • Look in the pacman cache of your computer if the packages are still present (/var/cache/pacman/pkg)
  • Get old packages from the Arch Rollback Machine
  • Build the old packages from ABS

The procedures are explained in the wiki. The simplest one will certainly be to look in the cache, or eventually ARM if they are not present.