简介
epel的含义是:
EPEL(Extra Packages for Enterprise Linux)
是一个由 Fedora 项目维护的仓库,提供了额外的开源软件包,
通常用于 CentOS、RHEL(Red Hat Enterprise Linux)及其衍生版本。
银河麒麟是基于CentOS系,华为自护研发的 OpenEuler的商业版操作系统.
他的内核glibc比centos8 略新, 比centos9 略旧
大部分epel8的包应该可以安装
使用清华镜像
https://mirrors.tuna.tsinghua.edu.cn/help/epel/
可以修改一下他的脚本, 我这里直接修改好:
cat > etc/yum.repos.d/epel.repo <<EOF
[epel]
name=Extra Packages for Enterprise Linux 8 - $basearch
baseurl=https://mirrors.tuna.tsinghua.edu.cn/epel/8/Everything/\$basearch/
enabled=1
gpgcheck=0
countme=1
[epel-debuginfo]
name=Extra Packages for Enterprise Linux 8 - $basearch - Debug
baseurl=https://mirrors.tuna.tsinghua.edu.cn/epel/8/Everything/\$basearch/debug/
enabled=0
gpgcheck=0
[epel-source]
name=Extra Packages for Enterprise Linux 8 - \$basearch - Source
baseurl=https://mirrors.tuna.tsinghua.edu.cn/epel/8/Everything/source/tree/
enabled=0
gpgcheck=0
EOF
然后进行安装就可以
比如:
yum makecache
yum install vnstat -y
systemctl enable --now vnstat
简单说明
因为银河麒麟的releaseserver 版本是 v10 所以肯定无法拉取 centos8的文件
所以建议修改成8 进行使用.
basearch 可以使用变量, 能够对 x86和arm系统都使用 提高效率.
文章转载自济南小老虎,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




