更新文档

This commit is contained in:
2026-09-17 22:29:26 +08:00
parent d383eaa612
commit aee82900ee
4 changed files with 91 additions and 6 deletions

View File

@@ -0,0 +1,41 @@
> 本文作者:丁辉
# EulerOS更换华为源
[官方文档](https://support.huaweicloud.com/csg_faq/csg_04_1209.html)
1. 备份本地Yum源
```bash
mkdir -p /etc/yum.repos.d/backup/
mv /etc/yum.repos.d/*.repo /etc/yum.repos.d/backup/
```
2. 编辑华为源文件
```bash
vi /etc/yum.repos.d/EulerOS.repo
```
内容如下
```bash
[base]
name=EulerOS-2.0SP8 base
baseurl=http://repo.huaweicloud.com/euler/2.8/os/aarch64/
enabled=1
gpgcheck=1
gpgkey=http://repo.huaweicloud.com/euler/2.8/os/RPM-GPG-KEY-EulerOS
```
3. 删除缓存数据
```bash
yum clean all
```
4. 创建元数据缓存
```bash
yum makecache
```