Add yum source: yuminstallPHP5.2

Source: Internet
Author: User
Tags gpg
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.

?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.