配置CentOS7 主机阿里yum源及epel源

假装没事ソ 提交于 2020-03-04 18:54:23

安装阿里yum源
[root@client ~]# cd /etc/yum.repos.d/
[root@client yum.repos.d]# mkdir bak
[root@client yum.repos.d]# mv *o bak/
[root@client yum.repos.d]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
[root@client yum.repos.d]# ls
bak CentOS-Base.repo

安装epel源
[root@client yum.repos.d]# yum install epel-release
[root@client yum.repos.d]# ls
bak CentOS-Base.repo epel.repo epel-testing.repo
[root@client yum.repos.d]# yum makecache
[root@client ~]# yum repolist
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile

base: mirrors.aliyun.com
epel: mirrors.aliyun.com
extras: mirrors.aliyun.com
updates: mirrors.aliyun.com
源标识 源名称 状态
base/7/x86_64 CentOS-7 - Base - mirrors.aliyun.com 10,019
epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 13,030
extras/7/x86_64 CentOS-7 - Extras - mirrors.aliyun.com 385
updates/7/x86_64 CentOS-7 - Updates - mirrors.aliyun.com 1,477
repolist: 24,911

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!