centos yum repo 国内镜像

本文提供了详细的步骤指导如何将CentOS系统的默认软件源更换为国内的高速镜像源,包括阿里云镜像、163镜像以及其他多个高校提供的开源镜像等,这些操作能够显著提高软件包的下载速度。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

阿里云镜像

#备份
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
#如果你的centos 是 5
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo
#如果你的centos是6
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
yum clean all
yum makecache


163镜像

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS5-Base-163.repo
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS6-Base-163.repo
yum clean all
yum makecache

其他镜像

天翼云开源 http://mirrors.ctyun.cn/

 搜狐的Linux安装镜像源: http://mirrors.sohu.com/

 北京首都在线科技:http://mirrors.yun-idc.com/


高校开源镜像

电子科技大学星辰工作室开源镜像服务 http://mirrors.stuhome.net/

东北大学(IPv4 & IPv6):http://mirror.neu.edu.cn/

东北大学(IPv6):http://mirror.neu6.edu.cn/

大连理工大学(IPv4 & IPv6):http://mirror.dlut.edu.cn/

大连东软信息学院(IPv4):http://mirrors.neusoft.edu.cn/

哈尔滨工业大学(IPv4 & IPv6):http://run.hit.edu.cn/

哈尔滨工业大学(IPv6):http://run.hit6.edu.cn/

清华大学(IPv4 & IPv6):http://mirrors.tuna.tsinghua.edu.cn/

清华大学(IPv4):http://mirrors.4.tuna.tsinghua.edu.cn/

清华大学(IPv6):http://mirrors.6.tuna.tsinghua.edu.cn/

北京理工大学(IPv4):http://mirror.bit.edu.cn/

北京理工大学(IPv6):http://mirror.bit6.edu.cn/

北京交通大学(IPv4 & IPv6):http://mirror.bjtu.edu.cn/

天津大学(IPv4):http://mirror.tju.edu.cn/

天津大学(IPv6):http://mirror.tju6.edu.cn/

中国科学技术大学(IPv4 & IPv6):http://mirrors.ustc.edu.cn/

中国科学技术大学(IPv4):http://mirrors4.ustc.edu.cn/

中国科学技术大学(IPv6):http://mirrors6.ustc.edu.cn/

华中科技大学(IPv4):http://mirrors.hust.edu.cn/

中国地质大学(IPv4 & IPv6):http://mirrors.cug.edu.cn/

中国地质大学(IPv6):http://mirrors.cug6.edu.cn/

上海交通大学(IPv4):http://ftp.sjtu.edu.cn/

上海交通大学(IPv6):http://ftp6.sjtu.edu.cn/

浙江大学(IPv4 & IPv6):http://mirrors.zju.edu.cn/

厦门大学(IPv4 & IPv6):http://mirrors.xmu.edu.cn/

厦门大学(IPv6):http://mirrors.xmu6.edu.cn/

中山大学(IPv4):http://mirror.sysu.edu.cn/

兰州大学(IPv4 & IPv6):http://mirror.lzu.edu.cn/

西南大学(IPv4):http://mirrors.swu.edu.cn/

电子科技大学(IPv4):http://ubuntu.uestc.edu.cn/

重庆大学(IPv4):http://mirrors.cqu.edu.cn/


转载于:https://my.oschina.net/swingcoder/blog/547890

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值