查看EulerOS系统版本
cat /etc/euleros-release
查看系统架构
lscpu
从上图可以看出系统版本为V2.0SP8/aarch64
在/etc/yum.repos.d/目录下,创建文件EulerOS.repo,根据EulerOS版本及系统架构选择配置内容。
执行yum clean all清除原有yum缓存。
执行*yum makecache*生成新的缓存。
ARM架构系统yum源
V2.0SP8/aarch64
[base] name=EulerOS-2.0SP8 base baseurl=http://mirrors.huaweicloud.com/euler/2.8/os/aarch64/ enabled=1 gpgcheck=1 gpgkey=http://mirrors.huaweicloud.com/euler/2.8/os/RPM-GPG-KEY-EulerOS
V2.0SP3/aarch64
[base] name=EulerOS-2.0SP3 base baseurl=http://mirrors.huaweicloud.com/euler/2.3/os/aarch64/ enabled=1 gpgcheck=1 gpgkey=http://mirrors.huaweicloud.com/euler/2.3/os/RPM-GPG-KEY-EulerOS
X86架构系统yum源
V2.0SP5/X86_64
[base] name=EulerOS-2.0SP5 base baseurl=http://mirrors.huaweicloud.com/euler/2.5/os/x86_64/ enabled=1 gpgcheck=1 gpgkey=http://mirrors.huaweicloud.com/euler/2.5/os/RPM-GPG-KEY-EulerOS
V2.0SP3/x86_64
[base] name=EulerOS-2.0SP3 base baseurl=http://mirrors.huaweicloud.com/euler/2.3/os/x86_64/ enabled=1 gpgcheck=1 gpgkey=http://mirrors.huaweicloud.com/euler/2.3/os/RPM-GPG-KEY-EulerOS
V2.0SP2/x86_64
[base] name=EulerOS-2.0SP2 base baseurl=http://mirrors.huaweicloud.com/euler/2.2/os/x86_64/ enabled=1 gpgcheck=1 gpgkey=http://mirrors.huaweicloud.com/euler/2.2/os/RPM-GPG-KEY-EulerOS
V2.0SP1/x86_64
[base] name=EulerOS-2.0SP1 base baseurl=http://mirrors.huaweicloud.com/euler/2.1/os/x86_64/ enabled=1 gpgcheck=1 gpgkey=http://mirrors.huaweicloud.com/euler/2.1/os/RPM-GPG-KEY-EulerOS
验证:yum install lsof -y
安装无报错或者执行yum repolist