AnolisOS 8 安装 epel源

AnolisOS 8 安装 epel源

阿里云epel8源配置

1)安装epel配置包
dnf install -y https://mirrors.aliyun.com/epel/epel-release-latest-8.noarch.rpm

2)替换为阿里云的地址
sed -i 's|^#baseurl=https://download.example/pub|baseurl=https://mirrors.aliyun.com|' /etc/yum.repos.d/epel*
sed -i 's|^metalink|#metalink|' /etc/yum.repos.d/epel*

3)清除缓存
dnf clean all

4) 建立缓存
dnf makecache

龙蜥AnolisOS8无法检索出epel的软件

dnf list all
没有看到epel网络源的软件包

解决方法需要启用epel源

dnf repolist all     #列出所有的存储库
Repository epel is listed more than once in the configuration
仓库 id                        仓库名称                                   状态
AppStream           AnolisOS-8 - AppStream   启用
BaseOS              AnolisOS-8 - BaseOS      启用
DDE                 AnolisOS-8 - DDE         禁用
Plus                AnolisOS-8 - Plus        禁用
PowerTools          AnolisOS-8 - PowerTools  启用
epel                epel                     禁用

dnf config-manager --set-enable epel   #启用epel源
dnf repolist epel      #查看epel源的状态
Repository epel is listed more than once in the configuration
仓库 id                            仓库名称                          状态
epel                               epel                            启用
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值