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

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

时间:2016-09-12 12:45:17      阅读:202      评论:0      收藏:0      [点我收藏+]

标签:linux

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


本文出自 “技术成就梦想” 博客,请务必保留此出处http://andyliu.blog.51cto.com/518879/1851866

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

标签:linux

原文地址:http://andyliu.blog.51cto.com/518879/1851866

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