centOS下更换网络yum源

前端之家收集整理的这篇文章主要介绍了centOS下更换网络yum源前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

@H_502_2@之前在centOS配的是163的yum源,挺坑的,网络连接比较慢,而且包不是很多。下面记录下更改过程:

[root@hehe ~]# yum clean all
[root@hehe ~]# yum list
[root@hehe ~]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
[root@hehe ~]# sed -i  's/$releasever/6.8/g' /etc/yum.repos.d/CentOS-Base.repo   
[root@xuegod63 ~]# yum clean all
[root@hehe ~]# yum list
即可把aliyun的yum源配置进来。 原文链接:https://www.f2er.com/centos/381357.html

猜你在找的CentOS相关文章