Centos配置网络yum

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Centos配置网络yum相关的知识,希望对你有一定的参考价值。

这篇文章主要使用163网的yum源

1.下载yum源

cd /etc/yum.repos.d/
Centos6系列:wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
Centos7系列:wget http://mirrors.163.com/.help/CentOS7-Base-163.repo

2.清除缓存

yum clean all

3.生成新缓存

yum makecache

4.检查yum是否成功

yum repolist

技术分享

注:出现以上信息证明yum源可用了。

以上是关于Centos配置网络yum的主要内容,如果未能解决你的问题,请参考以下文章

Centos配置网络yum

linux centos6.8系统配置网络yum源

CentOS配置本地yum源,网络源以及优先级

Centos7 本地与网络Yum源配置

CentOS 6 网络yum源配置

配置网络yum源