Redhat7.2配置免费yum源(简单五步轻松搞定)
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Redhat7.2配置免费yum源(简单五步轻松搞定)相关的知识,希望对你有一定的参考价值。
步骤一:清除redhat原有的yum源
步骤二:下载163的yum包
wget http://mirrors.163.com/centos/7.2.1511/os/x86_64/Packages/yum-3.4.3-132.el7.centos.0.1.noarch.rpm
wget http://mirrors.163.com/centos/7.2.1511/os/x86_64/Packages/python-iniparse-0.4-9.el7.noarch.rpm wget http://mirrors.163.com/centos/7.2.1511/os/x86_64/Packages/yum-metadata-parser-1.1.4-10.el7.x86_64.rpm
wget http://mirrors.163.com/centos/7.2.1511/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.31-34.el7.noarch.rpm
步骤三:安装下载的yum包
步骤四:创建文件/etc/yum.repos.d/rhel-Base.repo并写入(复制我的即可)
[base] name=CentOS-$releasever - Basebaseurl=http://mirrors.163.com/centos/7.2.1511/os/$basearch/gpgcheck=1gpgkey=http://mirrors.163.com/centos/7.2.1511/os/x86_64/RPM-GPG-KEY-CentOS-7#released updates
[updates] name=CentOS-$releasever - Updatesbaseurl=http://mirrors.163.com/centos/7.2.1511/updates/$basearch/gpgcheck=1gpgkey=http://mirrors.163.com/centos/7.2.1511/os/x86_64/RPM-GPG-KEY-CentOS-7
[extras] name=CentOS-$releasever - Extrasbaseurl=http://mirrors.163.com/centos/7.2.1511/extras//$basearch/ gpgcheck=1gpgkey=http://mirrors.163.com/centos/7.2.1511/os/x86_64/RPM-GPG-KEY-CentOS-7
[centosplus] name=CentOS-$releasever - Plusbaseurl=http://mirrors.163.com/centos/7.2.1511/centosplus//$basearch/ gpgcheck=1enabled=0
步骤五:清理yum缓存和测试yum
如图,正在更新,表示配置成功。
本文出自 “李晓东” 博客,请务必保留此出处http://lixiaodong2016.blog.51cto.com/11693292/1791628
以上是关于Redhat7.2配置免费yum源(简单五步轻松搞定)的主要内容,如果未能解决你的问题,请参考以下文章
Centos7.2 Redhat7.2 离线安装docker