- 备份
\cp /etc/yum.repos.d/openEuler.repo /etc/yum.repos.d/openEuler.repo.backup
- 修改为阿里源地址
sed -i "s#repo.openeuler.org#mirrors.aliyun.com/openeuler#g" /etc/yum.repos.d/openEuler.repo
- 运行生成缓存
yum makecache
\cp /etc/yum.repos.d/openEuler.repo /etc/yum.repos.d/openEuler.repo.backup
sed -i "s#repo.openeuler.org#mirrors.aliyun.com/openeuler#g" /etc/yum.repos.d/openEuler.repo
yum makecache