Oliver2000
asked on
Install older version of php with yum
Hi to all,
I try to install on Centos with YUM a older version of php. When i use YUM LIST PHP i get the following results:
Available Packages
php.i386 5.1.6-23.2.el5_3 base
php.i386 5.1.6-24.el5_4.5 updates
php.i386 5.2.12-1.el5.art atomic
php.i386 5.2.12-2.el5.art atomic
php.i386 5.2.12-3.el5.art atomic
php.i386 5.2.13-1.el5.art atomic
which is great. now I want to install version 5.1.6 and tried all kind of things but he always give me the awnser that the package is not avalible or he wants to install 5.2.12
I tried: yum --allow-downgrade install php.i386-5.1.6-23.2.el5_3
I get the anwser:
Setting up Install Process
No package php.i386-5.1.6-23.2.el5_3 available.
Nothing to do
I am out of ideas here...
How can i choose which package i want to install with yum?
thanks for help,
Oliver
I try to install on Centos with YUM a older version of php. When i use YUM LIST PHP i get the following results:
Available Packages
php.i386 5.1.6-23.2.el5_3 base
php.i386 5.1.6-24.el5_4.5 updates
php.i386 5.2.12-1.el5.art atomic
php.i386 5.2.12-2.el5.art atomic
php.i386 5.2.12-3.el5.art atomic
php.i386 5.2.13-1.el5.art atomic
which is great. now I want to install version 5.1.6 and tried all kind of things but he always give me the awnser that the package is not avalible or he wants to install 5.2.12
I tried: yum --allow-downgrade install php.i386-5.1.6-23.2.el5_3
I get the anwser:
Setting up Install Process
No package php.i386-5.1.6-23.2.el5_3 available.
Nothing to do
I am out of ideas here...
How can i choose which package i want to install with yum?
thanks for help,
Oliver
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Somebody already had this problem. Take a look at the answer:
https://www.experts-exchange.com/questions/24687686/PHP-Remove-5-3-and-install-5-2-Centos-5-2.html
https://www.experts-exchange.com/questions/24687686/PHP-Remove-5-3-and-install-5-2-Centos-5-2.html
ASKER
I installed rpmforge but the result is the same as before. still same message.
Loaded plugins: allowdowngrade, fastestmirror
Loading mirror speeds from cached hostfile
* addons: mirror.newnanutilities.org
* base: ftp.linux.ncsu.edu
* extras: ftp.linux.ncsu.edu
* rpmforge: ftp-stud.fht-esslingen.de
* updates: hpc.arc.georgetown.edu
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php.i386 0:5.1.6-24.el5_4.5 set to be updated
--> Processing Dependency: php-common = 5.1.6-24.el5_4.5 for package: php
--> Processing Dependency: php-cli = 5.1.6-24.el5_4.5 for package: php
--> Finished Dependency Resolution
php-5.1.6-24.el5_4.5.i386 from updates has depsolving problems
--> Missing Dependency: php-cli = 5.1.6-24.el5_4.5 is needed by package php-5.1.6-24.el5_4.5.i386 (updates)
php-5.1.6-24.el5_4.5.i386 from updates has depsolving problems
--> Missing Dependency: php-common = 5.1.6-24.el5_4.5 is needed by package php-5.1.6-24.el5_4.5.i386 (updates)
Error: Missing Dependency: php-common = 5.1.6-24.el5_4.5 is needed by package php-5.1.6-24.el5_4.5.i386 (updates)
Error: Missing Dependency: php-cli = 5.1.6-24.el5_4.5 is needed by package php-5.1.6-24.el5_4.5.i386 (updates)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
Loaded plugins: allowdowngrade, fastestmirror
Loading mirror speeds from cached hostfile
* addons: mirror.newnanutilities.org
* base: ftp.linux.ncsu.edu
* extras: ftp.linux.ncsu.edu
* rpmforge: ftp-stud.fht-esslingen.de
* updates: hpc.arc.georgetown.edu
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php.i386 0:5.1.6-24.el5_4.5 set to be updated
--> Processing Dependency: php-common = 5.1.6-24.el5_4.5 for package: php
--> Processing Dependency: php-cli = 5.1.6-24.el5_4.5 for package: php
--> Finished Dependency Resolution
php-5.1.6-24.el5_4.5.i386 from updates has depsolving problems
--> Missing Dependency: php-cli = 5.1.6-24.el5_4.5 is needed by package php-5.1.6-24.el5_4.5.i386 (updates)
php-5.1.6-24.el5_4.5.i386 from updates has depsolving problems
--> Missing Dependency: php-common = 5.1.6-24.el5_4.5 is needed by package php-5.1.6-24.el5_4.5.i386 (updates)
Error: Missing Dependency: php-common = 5.1.6-24.el5_4.5 is needed by package php-5.1.6-24.el5_4.5.i386 (updates)
Error: Missing Dependency: php-cli = 5.1.6-24.el5_4.5 is needed by package php-5.1.6-24.el5_4.5.i386 (updates)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
ASKER
if i try to install with yum php-common and php-cli i get the awnser that both are installed already?!
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Ok what is the version of php-common and php-cli , maybe they are also newer I mean they are both 5.2.x and you need to do the same thing with them remove and install to get the old version
1- post the output of
rpm -qa | grep php
2- yum search php-common php-cli
1- post the output of
rpm -qa | grep php
2- yum search php-common php-cli
ASKER
Thanks, this 100% solved the problems i had.
ASKER
worked! Thanks to small_student and the final tip from MrVandemar. perfect now...
ASKER
after yum install php
i get:
Loaded plugins: allowdowngrade, fastestmirror
Loading mirror speeds from cached hostfile
* addons: mirror.newnanutilities.org
* base: ftp.linux.ncsu.edu
* extras: ftp.linux.ncsu.edu
* updates: centos.mirror.netriplex.co
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php.i386 0:5.1.6-24.el5_4.5 set to be updated
--> Processing Dependency: php-common = 5.1.6-24.el5_4.5 for package: php
--> Processing Dependency: php-cli = 5.1.6-24.el5_4.5 for package: php
--> Finished Dependency Resolution
php-5.1.6-24.el5_4.5.i386 from updates has depsolving problems
--> Missing Dependency: php-cli = 5.1.6-24.el5_4.5 is needed by package php-5.1.6-24.el5_4.5.i386 (updates)
php-5.1.6-24.el5_4.5.i386 from updates has depsolving problems
--> Missing Dependency: php-common = 5.1.6-24.el5_4.5 is needed by package php-5.1.6-24.el5_4.5.i386 (updates)
Error: Missing Dependency: php-common = 5.1.6-24.el5_4.5 is needed by package php-5.1.6-24.el5_4.5.i386 (updates)
Error: Missing Dependency: php-cli = 5.1.6-24.el5_4.5 is needed by package php-5.1.6-24.el5_4.5.i386 (updates)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.