华为云yum镜像源下载慢解决方法
镜像源改为阿里云镜像源
一、备份镜像源
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
二、下载阿里云镜像源
查看centos是ARM还是X86
ARM处理方式
华为云centos7是CentOS AltArch,是基于ARM架构的一个操作系统
cd /etc/yum.repo.d/
wget http://mirrors.aliyun.com/repo/Centos-altarch-7.repo -O CentOS-Base-aliyun.repo
x86处理方式
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
三、清除缓存更新缓存
yum clean all
yum makecache