在Centos 5.x 或者 6.x 上安装最新版的EPEL(比网易的源更新)
2014-06-05 21:04
441 查看
这文章太简单,大家只看我写中文的地方就可以了
Installing RHEL EPEL Repo on Centos 5.x or 6.x
much more current versions of popular applications like PHP or MYSQL.
下面根据自己的版本挑选脚本去运行,比如你是Centos 6.4 就用 Centos 6.x
Once installed you should see some additional repo definitions under the /etc/yum.repos.d directory.
安装完毕后去 remi.repo看下,如果出现以下三个文件就正常
$ ls -1 /etc/yum.repos.d/epel* /etc/yum.repos.d/remi.repo
/etc/yum.repos.d/epel.repo
/etc/yum.repos.d/epel-testing.repo
/etc/yum.repos.d/remi.repo
First, open the /etc/yum.repos.d/remi.repo repository file using a text editor of your choice:
用vim打开remi.repo文件
sudo vim /etc/yum.repos.d/remi.repo
Edit the [remi] portion of the file so that the enabled option is set to 1. This will enable the remi repository.
将enabled那项修改为1
name=Les RPM de remi pour Enterprise Linux $releasever - $basearch
#baseurl=http://rpms.famillecollet.com/enterprise/$releasever/remi/$basearch/
mirrorlist=http://rpms.famillecollet.com/enterprise/$releasever/remi/mirror
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
failovermethod=priority
You will now have a larger array of yum repositories from which to install.
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 party remi package repos. These package repositories are not officially supported by CentOS, but they providemuch more current versions of popular applications like PHP or 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
wget http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm sudo rpm -Uvh remi-release-5*.rpm epel-release-5*.rpmCentos 6.x
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpmOnce installed you should see some additional repo definitions under the /etc/yum.repos.d directory.
安装完毕后去 remi.repo看下,如果出现以下三个文件就正常
$ ls -1 /etc/yum.repos.d/epel* /etc/yum.repos.d/remi.repo
/etc/yum.repos.d/epel.repo
/etc/yum.repos.d/epel-testing.repo
/etc/yum.repos.d/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.repo repository file using a text editor of your choice:
用vim打开remi.repo文件
sudo vim /etc/yum.repos.d/remi.repo
Edit the [remi] portion of the file so that the enabled option is set to 1. This will enable the remi repository.
将enabled那项修改为1
name=Les RPM de remi pour Enterprise Linux $releasever - $basearch
#baseurl=http://rpms.famillecollet.com/enterprise/$releasever/remi/$basearch/
mirrorlist=http://rpms.famillecollet.com/enterprise/$releasever/remi/mirror
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
failovermethod=priority
You will now have a larger array of yum repositories from which to install.
相关文章推荐
- Nagios 4.0.1版本安装 适用于RHEL/Centos 5.x/6.x 或者Fedora 17/18/19(一)
- Nagios 4.0.1版本安装 适用于RHEL/Centos 5.x/6.x 或者Fedora 17/18/19(一)
- 在Centos 5.x或6.x上安装RHEL EPEL Repo
- 在Centos 5.x或6.x上安装RHEL EPEL Repo
- CentOS 6.X 安装 EPEL 源
- centos 6&7 更新&安装最新版git
- Centos 5.x/6.x 配置163网易yum源
- How to Enable EPEL Repository for RHEL/CentOS 7.x/6.x/5.x
- Enable EPEL Repository for RHEL/CentOS 7.x/6.x/5.x
- 在Centos 5.x或6.x上安装RHEL EPEL Repo
- Centos 5.x/6.x 配置163网易yum源
- How to Enable EPEL Repository for CentOS 7.x/6.x/5.x
- 在Centos 5.x或6.x上安装RHEL EPEL Repo
- How to Enable EPEL Repository for CentOS 7.x/6.x/5.x
- 在Centos 5.x或6.x上安装RHEL EPEL Repo
- 在Centos 5.x或6.x上安装RHEL EPEL Repo
- centos-5.x安装后的几点优化 安全 2011-04-26更新
- CentOS 6.X更新Python2.7.x版本 安装pip
- Postfix/IredMail安装/IredMail install on Centos 5.x/6.x
- RHEL/CentOS 6.x使用EPEL6与remi的yum源安装MySQL 5.5.x