ICode9

精准搜索请尝试: 精确搜索
首页 > 系统相关> 文章详细

CentOS7更换镜像源

2021-04-08 14:58:19  阅读:138  来源: 互联网

标签:repo CentOS local root CentOS7 yum wget 镜像 更换


一、安装wget

执行: yum install -y wget

[root@local ~] yum install -y wget

二、下载CentOS 7的repo文件

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

●或者

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

●更新镜像源

●清除缓存yum clean all

●生成缓存yum makecache

[root@local ~]# yum clean all

[root@local ~]# yum makecache

标签:repo,CentOS,local,root,CentOS7,yum,wget,镜像,更换
来源: https://blog.csdn.net/qq_39450259/article/details/115520202

专注分享技术,共同学习,共同进步。侵权联系[admin#icode9.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有