在Centos 5.x或6.x上安装RHEL EPEL Repo
来源:互联网 发布:万方数据库官网登陆 编辑:程序博客网 时间:2024/05/29 23:48
repository,资源库,源的意思。RHEL EPEL(Extra Packages for EnterpriseLinux) Repo是Linux发行版中最大的软件仓库之一,免费,丰富的软件包更新。
安装步骤
Centos 5.x
wgethttp://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
rpm -ivh epel-release-5-4.noarch.rpm
rpm -ivh remi-release-5.rpm
Centos 6.x
wgethttp://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -ivh epel-release-6-8.noarch.rpm
rpm -ivh remi-release-6.rpm
完成后的设置
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
允许remi repository
vi /etc/yum.repos.d/remi.repo
编辑[remi]下的enabled选项从0设为1
[remi]
name=Les RPM de remi pour Enterprise Linux 6 - $basearch
#baseurl=http://rpms.famillecollet.com/enterprise/6/remi/$basearch/
mirrorlist=http://rpms.famillecollet.com/enterprise/6/remi/mirror
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
至此,安装完成。
安装完运行yum报错:
Error: Cannot retrieve metalink forrepository: epel. Please verify its path and try again
解决办法:
vi /etc/yum.repos.d/epel.repo
编辑[epel]下的baseurl前的#号去掉,mirrorlist前添加#号。正确配置如下:
[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
再运行
yum makecache
英文出自于这里。
- 在Centos 5.x或6.x上安装RHEL EPEL Repo
- 在Centos 5.x或6.x上安装RHEL EPEL Repo
- 在Centos 5.x或6.x上安装RHEL EPEL Repo
- Installing RHEL EPEL Repo on Centos 5.x or 6.x
- CentOS 5.* 6.*下安装RHEL EPEL Repo软件源
- How to Enable EPEL Repository for RHEL/CentOS 7.x/6.x/5.x
- How to Enable EPEL Repository for RHEL/CentOS 7.x/6.x/5.x
- RHEL/CentOS 7.x/6.x/5.x开启EPEL仓库
- 在Centos 5.x 或者 6.x 上安装最新版的EPEL(比网易的源更新)
- Install EPEL Repository On RHEL / CentOS / Scientific linux 6.x, 5.x
- CentOS 6.X 安装 EPEL 源
- RHEL(redhat 5.x,6.x)和CentOS上Gitlab安装全过程
- How to Enable EPEL Repository for RHEL/CentOS 7.x/6.x
- RHEL/CentOS 7.x使用EPEL第三方yum源
- CentOS/RHEL安装X Window
- 在CentOS 6.x 上安装 vnc
- RHEL/CentOS/SL Linux 6.x使用EPEL 6的yum软件源
- RHEL/CentOS 5.x使用第三方软件库(EPEL与RPMForge、RPMFusion软件库)
- python 读写文件
- LeetCode: Reverse Bits
- os.system返回值
- 【程序员小助手】Emacs,最强编辑器,没有之一
- 【程序员小助手】Synergy,感受穿越屏幕之美
- 在Centos 5.x或6.x上安装RHEL EPEL Repo
- DevOps - CI
- Sum Root to Leaf Numbers
- 博客摘抄
- 输出无名称的空值数组---精通android、IOS App应用服务程序开发
- FileInfo类的基本操作
- Xsolla和Hi-Rez工作室联手推行SMITE
- Android 小米盒子使用电视特性标签
- File类的基本操作