我是
靠谱客的博主
文静八宝粥,这篇文章主要介绍
RHEL 7 配置 源,现在分享给大家,希望可以做个参考。
下载EPEL RPM安装包,目前最新的版本是epel-release-7-5.noarch.rpm,如果链接无效,可以在http://dl.fedoraproject.org/pub/epel/7/x86_64/e/找到对应的rpm包即可
下载
| 复制代码1
wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
|
安装
| 复制代码1
yum install epel-release-7-5.noarch.rpm
|
查看是否安装成功
redhat配置centos源
| 复制代码1
vim /etc/yum.repos.d/CentOS-Base.repo
|
将一下内容复制到文件中
复制代码1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
| 复制代码1
[base]
name=CentOS-5-Base
#mirrorlist=http:
#baseurl=http:
baseurl=http:
gpgcheck=0
gpgkey=http:
#released updates
[updates]
name=CentOS-$releasever – Updates
#mirrorlist=http:
baseurl=http:
gpgcheck=0
gpgkey=file:
[extras]
name=CentOS-$releasever – Extras
#mirrorlist=http:
baseurl=http:
gpgcheck=0
gpgkey=file:
[centosplus]
name=CentOS-$releasever – Plus
#mirrorlist=http:
baseurl=http:
gpgcheck=0
enabled=0
gpgkey=file:
|
执行以下命令
| 复制代码1
rpm --import http: rpm -qa gpg-pubkey
|
地址:http://wuchuiyou.com/2015/05/02/RHEL-7-%E9%85%8D%E7%BD%AECentOS%E6%BA%90/
最后
以上就是文静八宝粥最近收集整理的关于RHEL 7 配置 源的全部内容,更多相关RHEL内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复