先有华为后有天,遥遥领先!
1 确定使用的OS版本
# cat /etc/os-release
NAME="openEuler"
VERSION="22.03 (LTS-SP3)"
ID="openEuler"
VERSION_ID="22.03"
PRETTY_NAME="openEuler 22.03 (LTS-SP3)"
ANSI_COLOR="0;31"
看PRETTY_NAME="openEuler 22.03 (LTS-SP3)"这一行,是完整的操作系统版本
进入社区论坛:【汇总贴】openEuler常用repo源 - 迁移 - openEuler 论坛
2 根据自己的版本找到对应yum源
3 找到源配置文件
cd /etc/yum.repos.d/
谁说这是CentOS?发律师函!
我下载好的os没有vim编辑器,先安装好vim,按说用原来的源也不慢
yum install vim -y
把原来的源备份一下
mv openEuler.repo openEuler.repo.bak
创建新文件,填上以下源内容
vim openEuler.repo
测试
yum update
华为源
[openEuler-everything]
name=openEuler-everything
baseurl=http://repo.huaweicloud.com/openeuler/openEuler-22.03-LTS-SP3/everything/x86_64/
enabled=1
gpgcheck=0
gpgkey=http://repo.huaweicloud.com/openeuler/openEuler-22.03-LTS-SP3/everything/x86_64/RPM-GPG-KEY-openEuler
[openEuler-EPOL]
name=openEuler-epol
baseurl=http://repo.huaweicloud.com/openeuler/openEuler-22.03-LTS-SP3/EPOL/main/x86_64/
enabled=1
gpgcheck=0
[openEuler-update]
name=openEuler-update
baseurl=http://repo.huaweicloud.com/openeuler/openEuler-22.03-LTS-SP3/update/x86_64/
enabled=1
gpgcheck=0
openEuler源
[openEuler-everything]
name=openEuler-everything
baseurl=http://repo.openeuler.org/openEuler-22.03-LTS-SP3/everything/x86_64/
enabled=1
gpgcheck=0
gpgkey=http://repo.openeuler.org/openEuler-22.03-LTS-SP3/everything/x86_64/RPM-GPG-KEY-openEuler
[openEuler-EPOL]
name=openEuler-epol
baseurl=http://repo.openeuler.org/openEuler-22.03-LTS-SP3/EPOL/main/x86_64/
enabled=1
gpgcheck=0
[openEuler-update]
name=openEuler-update
baseurl=http://repo.openeuler.org/openEuler-22.03-LTS-SP3/update/x86_64/
enabled=1
gpgcheck=0
清华源
[openEuler-everything]
name=openEuler-everything
baseurl=http://mirrors.tuna.tsinghua.edu.cn/openeuler/openEuler-22.03-LTS-SP3/everything/x86_64/
enabled=1
gpgcheck=0
gpgkey=http://mirrors.tuna.tsinghua.edu.cn/openeuler/openEuler-22.03-LTS-SP3/everything/x86_64/RPM-GPG-KEY-openEuler
[openEuler-EPOL]
name=openEuler-epol
baseurl=http://mirrors.tuna.tsinghua.edu.cn/openeuler/openEuler-22.03-LTS-SP3/EPOL/main/x86_64/
enabled=1
gpgcheck=0
[openEuler-update]
name=openEuler-update
baseurl=http://mirrors.tuna.tsinghua.edu.cn/openeuler/openEuler-22.03-LTS-SP3/update/x86_64/
enabled=1
gpgcheck=0