首页 > 系统服务 > 详细

Linux配置阿里epl源

时间:2020-05-02 01:03:04      阅读:126      评论:0      收藏:0      [点我收藏+]

去阿里云

有源仓库 阿里云镜像官方站点
https://developer.aliyun.com/mirror/

先备份本机上的源

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

根据对应版本下载新的 CentOS-Base.repo 到 /etc/yum.repos.d/

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo

或者

curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo

运行 yum makecache 生成缓存

[23:36:42 root@C8[ network-scripts]#yum makecache
Repository AppStream is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository PowerTools is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
CentOS-8 - AppStream                                           2.2 kB/s | 4.3 kB     00:01    
CentOS-8 - Base - mirrors.aliyun.com                           1.7 MB/s | 2.2 MB     00:01    
CentOS-8 - Extras - mirrors.aliyun.com                          20 kB/s | 5.5 kB     00:00    
Metadata cache created.

Linux配置阿里epl源

原文:https://www.cnblogs.com/bpzblog/p/12815480.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!