RHEL7 Or CentOS7下配置aliyun-epel和fedora的EPEL源-阿里云开发者社区

开发者社区> 开发与运维> 正文
登录阅读全文

RHEL7 Or CentOS7下配置aliyun-epel和fedora的EPEL源

简介:

1,阿里云的直接添加aliyun-epel.repo

[root@hadoop1 yum.repos.d]# vim aliyun-epel.repo

[epel]

name=Extra Packages for Enterprise Linux 7 - $basearch

baseurl=http://mirrors.aliyun.com/epel/7/$basearch

#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch

failovermethod=priority

enabled=1

gpgcheck=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7


[epel-debuginfo]

name=Extra Packages for Enterprise Linux 7 - $basearch - Debug

baseurl=http://mirrors.aliyun.com/epel/7/$basearch/debug

#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-7&arch=$basearch

failovermethod=priority

enabled=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7

gpgcheck=0


[epel-source]

name=Extra Packages for Enterprise Linux 7 - $basearch - Source

baseurl=http://mirrors.aliyun.com/epel/7/SRPMS

#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-7&arch=$basearch

failovermethod=priority

enabled=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7

gpgcheck=0




2、fedora的源安装epel-release-7-8.noarch.rpm

http://ftp.sjtu.edu.cn/fedora/epel/7/x86_64/e/epel-release-7-8.noarch.rpm


[root@openstack yum.repos.d]# wget http://ftp.sjtu.edu.cn/fedora/epel/7/x86_64/e/epel-release-7-7.noarch.rpm

[root@openstack yum.repos.d]# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 

[root@openstack yum.repos.d]# rpm -ivh epel-release-7-7.noarch.rpm

[root@openstack yum.repos.d]# vim epel.repo

  1 [epel]

  2 name=Extra Packages for Enterprise Linux 7 - $basearch

  3 #baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch

  5 failovermethod=priority

  6 enabled=1

  7 gpgcheck=1

  8 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7

  9

 10 [epel-debuginfo]

 11 name=Extra Packages for Enterprise Linux 7 - $basearch - Debug

 12 #baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch/debug

 13 mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-7&arch=$    basearch

 14 failovermethod=priority

 15 enabled=0  修改为1

 16 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7

 17 gpgcheck=1

 18

 19 [epel-source]

 20 name=Extra Packages for Enterprise Linux 7 - $basearch - Source

 21 #baseurl=http://download.fedoraproject.org/pub/epel/7/SRPMS

 22 mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-7&arch=    $basearch

 23 failovermethod=priority

 24 enabled=0  修改为1

 25 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7

 26 gpgcheck=1

本文转自    OpenStack2015 博客,原文链接:   http://blog.51cto.com/andyliu/1851866     如需转载请自行联系原作者

版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。

分享: