Installing RHEL EPEL Repo on Centos 5.x or 6.x
How to install RHEL EPEL repository on Centos 5.x or 6.x
The following article will describe how to configure a CentOS 5.x-based or Centos 6.x-based system to use Fedora Epel repos and third partyremipackage repos. These package repositories are not officially supported by CentOS,but they provide much more current versions of popular applications likePHPor MysqL.
Install the extra repositories
The first step requires downloading some RPM files that contain the additional YUM repository deFinitions. The instructions below point to the 64-bit versions that work with our Cloud Server instances.
下面根据自己的版本挑选脚本去运行,比如你是Centos 6.4 就用 Centos 6.x
Centos 5.x
Centos 6.x
Once installed you should see some additional repo deFinitions under the/etc/yum.repos.ddirectory.
安装完毕后去 remi.repo看下,如果出现以下三个文件就正常
Enable the remi repository 打开remi源
The remi repository provides a variety of up-to-date packages that are useful or are a requirement for many popular web-based services. That means it generally is not a bad idea to enable the remi repositories by default.
First,open the/etc/yum.repos.d/remi.reporepository file using a text editor of your choice:
用vim打开remi.repo文件
Edit the[remi]portion of the file so that theenabledoption is set to1. This will enable the remi repository.
将enabled那项修改为1
You will Now have a larger array of yum repositories from which to install.
转载出处 http://www.2cto.com/os/201406/306633.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。