Administrator
Published on 2024-06-14 / 84 Visits
0
0

麒麟高级服务器系统V10无法安装epel-release

说明

麒麟V10的仓库为epel-release,导致我们要安装一些软件,比如fail2ban就无法安装,我们可以两种方式进行:

1. 下载离线包进行安装

wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -ivh --nodeps epel-release-latest-7.noarch.rpm

2. 创建华为epel-release源

vi /etc/yum.repos.d/epel-huawei.repo

内容:

[epel-everything]
name=huawei epel mirror
baseurl=https://repo.huaweicloud.com/epel/7/aarch64/
enabled=1
gpgcheck=0

注意不同系统和CPU架构得使用不同的地址

麒麟V10/centos7 arm:https://repo.huaweicloud.com/epel/7/aarch64/

麒麟V10/centos7 x86_64:https://repo.huaweicloud.com/epel/7/x86_64/

centos8 arm:https://repo.huaweicloud.com/epel/8/Everything/aarch64/

centos7 x86_64:https://repo.huaweicloud.com/epel/8/Everything/x86_64/

此外还有9等的源,具体看https://repo.huaweicloud.com/epel/,https://repo.huaweicloud.com/epel/里面有epel-release-latest-7.noarch.rpm,可以按照离线包的方式进行安装。

上面的离线包进行安装,实际上也可以直接看https://dl.fedoraproject.org/pub/epel,同样有7,8,9等版本,可以按照创建源的方式进行安装。


Comment