之前一直配置的是华为的yum源,但是华为镜像那边不太稳定,于是打算用阿里的,对于其他版本的openEuler直接改成对应版本就好啦
1、在/etc/yum.repos.d/目录下新建openEuler.repo
[OS]
name=OS
baseurl=http://mirrors.aliyun.com/openeuler/openEuler-20.03-LTS/OS/$basearch/
enabled=1
[everything]
name=everything
baseurl=https://mirrors.aliyun.com/openeuler/openEuler-20.03-LTS/everything/$basearch/
enabled=1
[EPOL]
name=EPOL
baseurl=http://mirrors.aliyun.com/openeuler/openEuler-20.03-LTS-SP2/EPOL/main/$basearch/
enabled=1
[debuginfo]
name=debuginfo
baseurl=http://mirrors.aliyun.com/openeuler/openEuler-20.03-LTS-SP2/debuginfo/$basearch/
enabled=1
[source]
name=source
baseurl=http://mirrors.aliyun.com/openeuler/openEuler-20.03-LTS-SP2/source/
enabled=1
[update]
name=update
baseurl=http://mirrors.aliyun.com/openeuler/openEuler-20.03-LTS-SP2/update/$basearch/
enabled=1
gpgcheck=1
2、清除缓存,重新建立缓存
yum clean all
yum makecache
标签:LTS,mirrors,OpenEuler20.03,SP2,baseurl,openEuler,openeuler
From: https://www.cnblogs.com/lightice/p/16931558.html