RHEL7 Or CentOS7下配置aliyun-epel和fedora的EPEL源
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了RHEL7 Or CentOS7下配置aliyun-epel和fedora的EPEL源相关的知识,希望对你有一定的参考价值。
1,阿里云的直接添加aliyun-epel.repo
[[email protected] 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
[[email protected] yum.repos.d]# wget http://ftp.sjtu.edu.cn/fedora/epel/7/x86_64/e/epel-release-7-7.noarch.rpm
[[email protected] yum.repos.d]# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
[[email protected] yum.repos.d]# rpm -ivh epel-release-7-7.noarch.rpm
[[email protected] 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源的主要内容,如果未能解决你的问题,请参考以下文章