在CentOS 5.x 或者 6.x 上安裝最新版的EPEL(比網易的源更新)yum源
這文章太簡單,大家只看我寫中文的地方就可以了
Installing RHEL EPEL Repo on 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 Epel repos and third party remi package repos. These package repositories are not officially supported by CentOS, but they provide much 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
wget
sudo rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm
Centos 6.x
wget
wget
sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
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
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=
mirrorlist=
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.
CentOS 5/6.X 使用 EPEL YUM源
如何在CentOS 5/6上安裝EPEL 源
RHEL/CentOS/Fedora各種源(EPEL、Remi、RPMForge、RPMFusion)配置
配置EPEL YUM源
更多CentOS相關資訊見 專題頁面
本文永久更新連結地址:
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29819001/viewspace-1392121/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Centos7配置阿里epel源|yum源CentOS阿里
- 在 CentOS 6.x 上安裝最新版本的 gitCentOSGit
- CentOS yum 源 網易開源映象站CentOS
- CentOS7 yum源修改為阿里,配置阿里epel源CentOS阿里
- 在CentOS7上安裝MySQL5.7-YUM源方式CentOSMySql
- CentOS7系統配置國內yum源和epel源CentOS
- CentOS 6.x 通過修改yum源 安裝最新mysql-server教程CentOSMySqlServer
- CentOS配置Nginx官方的Yum源及yum安裝phpCentOSNginxPHP
- Red Hat Linux安裝CentOS的yum源LinuxCentOS
- CentOS 6.4 國內最快的YUM源安裝CentOS
- centos7 更換yum為阿里源或者別的源CentOS阿里
- 在 Centos/RHEL 6.X 上安裝 WettyCentOS
- Linux CentOS 7 更新yum源LinuxCentOS
- 搭建企業內部yum倉庫(centos6+centos7+epel源)CentOS
- 【yum源】CentOS7安裝第三方源CentOS
- centos6的yum源更新版本CentOS
- postgres yum源安裝
- RedHat6.5如何更新為CentOS6.5的YUM源RedhatCentOS
- 為了安裝alien,我更新了yum源,結果還是沒裝上
- CentOS修改yum源CentOS
- CentOS 配置yum源CentOS
- centos6 安裝EPELCentOS
- CentOS 搭建內部Yum源同步阿里Yum源CentOS阿里
- 阿里雲 CentOS 映象和 EPEL 源阿里CentOS
- 搭建本地yum源,使用安裝光碟的rpm作為yum源的檔案
- 在Windows上安裝Elasticsearch 5.xWindowsElasticsearch
- redhat修改yum源(CENTOS)RedhatCentOS
- centos 替換yum源CentOS
- 在ubuntu上安裝docker, 使用國內的安裝源UbuntuDocker
- Linux下更換預設yum源為網易yum源的操作記錄Linux
- 在CentOS上使用yum安裝MySQL+安全優化CentOSMySql優化
- 配置本地yum源及安裝必要的包
- SonarQube在CentOS上的安裝CentOS
- 在RHEL / CentOS / 5.x / 6.x上用密碼保護單使用者模式CentOS密碼模式
- centos 6.x 安裝 gogsCentOSGo
- 安裝最新版MySQL(yum安裝)MySql
- Centos系統配置yum源CentOS
- CentOS6.9配置yum源CentOS