确认发行版
1 | cat /etc/openEuler-release |
显示
1 | openEuler release 20.03 (LTS) |
查询源
- 进入华为开源镜像 https://mirrors.huaweicloud.com/home
- 选择 “镜像” > “openEuler” > 继续使用
- 选择架构(参看系统安装镜像)
- 复制命令(以
X86_64
为例)
1 | wget -O /etc/yum.repos.d/openEulerOS.repo https://repo.huaweicloud.com/repository/conf/openeuler_x86_64.repo |
配置 yum
进入 openEuler:
- 下载
openEulerOS.repo
到/etc/yum.repos.d/
1 | wget -O /etc/yum.repos.d/openEulerOS.repo https://repo.huaweicloud.com/repository/conf/openeuler_x86_64.repo |
- 清除原有 yum 缓存
1 | yum clean all |
- 生成新的缓存
1 | yum makecache |
安装 vim
1 | yum install vim -y |
参考资料: