码迷,mamicode.com
首页 > 其他好文 > 详细

配置 EPEL yum 源

时间:2016-11-20 06:21:22      阅读:149      评论:0      收藏:0      [点我收藏+]

标签:yum   i386   bsp   red hat   com   info   reg   deb   news   

当我们在linux上, 使用yum 安装包时,报错如下:

Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Install Process
Nothing to do

这时我们需要安装EPEL

EPEL,即Extra Packages for Enterprise Linux,这个软件仓库里有很多非常常用的软件,而且是专门针对RHEL设计的,对RHEL标准yum源是一个很好的补充,完全免费使用,由Fedora项目维护,所以如果你使用的是RHEL

从官网下载 EPEL, 安装

下载:(RHEL/CentOS 5 32-64 Bit)

wget http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm

安装:

rpm -ivh epel-release-5-4.noarch.rpm

配置:

在 /etc/yum.repos.d/下 创建epel.repo

[epel-source]域下的enabled=0也改成enabled=1

 

enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL

[epel-debuginfo]
name=Extra Packages for Enterprise Linux 5 - $basearch - Debug
#baseurl=http://download.fedoraproject.org/pub/epel/5/$basearch/debug
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-debug-5&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
gpgcheck=1

[epel-source]
name=Extra Packages for Enterprise Linux 5 - $basearch - Source
#baseurl=http://download.fedoraproject.org/pub/epel/5/SRPMS
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-source-5&arch=$basearch
failovermethod=priority
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
gpgcheck=1

 卸载 EPEL:

[root@test ~]# rpm -e epel-release

配置 EPEL yum 源

标签:yum   i386   bsp   red hat   com   info   reg   deb   news   

原文地址:http://www.cnblogs.com/frankb/p/6081924.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!