Just created a new Fedora VM and it has PHP 5.3 loaded, and I have legacy code that references functions that are now deprecated ( e.g. eregi() ).

How can I downgrade my PHP install from 5.3 to something earlier like 5.2? Installation via YUM would be preferred but if anyone knows of any way I'd like to know how.

Thanks,

link|improve this question

77% accept rate
Which Fedora version are you using ? – proy Jan 19 '10 at 21:35
Fedora 12. From uname -a: Linux barfoon 2.6.31.9-174.fc12.x86_64 #1 SMP Mon Dec 21 05:33:33 UTC 2009 x86_64 x86_64 x86_64 GNU/Linux – barfoon Jan 19 '10 at 21:39
feedback

1 Answer

up vote 2 down vote accepted

I am a hard core Ubuntu user but this is how it goes as far as i remember from my earlier days. Do a "yum search php" and see if the version you are looking for is there. If so un install the older version of php via "yum remove <>' and then install the available version with "yum install <>". I guess this is the only possible way via yum.

link|improve this answer
Thanks - I have tried this and it did not work. PHP 5.3 is the only one available in the repo. – barfoon Jan 19 '10 at 22:25
May be then the only option is to un install the current version and then install from sources. – proy Jan 19 '10 at 23:40
you could try adding repositories to your yum configs – warren Jan 20 '10 at 0:13
1  
Check this link in Fedora Forums fedoraforum.org/forum/showthread.php?t=234132 , it says how to do it for Fedora 11. You can work based on that link for Fedora 12 too. – proy Jan 20 '10 at 9:55
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.