yum install a particular version
18,522
Solution 1
You have to first add a repository that has PHP 5.3. In this case you can use the webtatic one
rpm -Uvh http://repo.webtatic.com/yum/centos/5/latest.rpm
Then execute the following:
yum update
Install PHP:
yum --enablerepo=webtatic install php
Solution 2
To install a specific version, just ask to yum to install the package with its full name.
For example, if the fullname of php-5.3.3 is 'php-5.3.3-1.el5.remi.x86_64.rpm' :
yum install php-5.3.3-1.el5.remi.x86_64.rpm
For more information, you can read this small article : http://www.zulius.com/how-to/yum-install-specific-package-version
Related videos on Youtube
Author by
Subodh Chettri
Updated on September 18, 2022Comments
-
Subodh Chettri over 1 year
I am currently using centOS 5.2 I want to install
php 5.3.3
. how do I install using yum? -
Admin about 13 years@SeyZ Thanks a lot. I tried it did not work on the box.
-
Admin about 13 yearsI'm not on a yum package manager so I can't test for you. Are you sure that the name of the package is correct and is the full name ?