配置华为linux系统的镜像源(centos与ubuntu系统)

tech2022-08-07  147

 centOS6与centOS7的镜像源(x86_64)  yum makecache

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

centOS7(arm架构) yum makecache

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

Ubuntu  x86_64架构使用如下命令   apt-get update

wget -O /etc/apt/sources.list http://mirrors.myhuaweicloud.com/repo/sources.list.trusty

 Ubuntu  arm架构使用如下命令   apt-get update

wget -O /etc/apt/sources.list http://mirrors.myhuaweicloud.com/repo/aarch64/sources.list.bionic

 

 

最新回复(0)