Home > Backend Development > PHP Tutorial > CentOS 5.x system yum upgrade php to 5.2.x method (available for testing)

CentOS 5.x system yum upgrade php to 5.2.x method (available for testing)

WBOY
Release: 2016-07-25 08:58:23
Original
716 people have browsed it
  1. # rpm --import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
Copy code

# vi /etc/yum.repos.d/CentOS- Base.repo adds the following information

  1. [utterramblings]
  2. name=Jason's Utter Ramblings Repo
  3. baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/
  4. enabled=1
  5. gpgcheck=1
  6. gpgkey=http ://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
Copy the code

Execute the command to upgrade automatically.

  1. yum update php -y
  2. yum install libmcrypt -y
Copy the code

It has been verified that it is OK.

When encountering an error, you can consider the following solutions.

Method 1: Change the URL

  1. rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
Copy code

Method 2: First download from the network to your local computer and then install it

  1. wget http://apt.sw.be/RPM-GPG-KEY.dag.txt
  2. rpm --import RPM-GPG-KEY.dag.txt
Copy the code

the above two All methods are available after testing.



source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template