Add yum source: one of the reasons why yuminstallPHP5.2 like CentOS has yum, and it is very convenient to install some dependent packages! However, the disadvantage is that the yum library is not the latest package. for example, php uses the official yum library to install version 5.1. due to development needs, install php5.2 to add the yum source: yum install PHP 5.2
One of the reasons why I like CentOS is that he has yum, which makes it easy to install some dependent packages! However, the disadvantage is that the yum library is not the latest package. for example, php uses official yum to install only version 5.1. because php 5.2 or later is required for development, I also want to install it through yum, so I found a yum install php5.2 method on the Internet and posted it to share it with you.
?
??? Install the corresponding GPG key
# Rpm -- import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
??? Create a repo
#/Etc/yum. repos. d/utterramblings. repo
??? Add the following content and save and exit.
[Utterramblings]
Name = Jason's Utter Ramblings Repo
Baseurl = http://www.jasonlitka.com/media/el?releasever/?basearch/
Enabled = 1
Gpgcheck = 1
Gpgkey = http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
?
?
??? That's easy! Now, try it.
Yum install php
??? Php5.2 is installed.
?