EPEL 是 Extra Packages for Enterprise Linux 的缩写,是一个开源的、免费的软件库,为Enterprise Linux提供额外的软件包,可以使Rocky Linux 9或8发行版受益。

EPEL 源安装
第一步:更新系统中所有的软件包

# 更新软件包

sudo dnf upgrade --refresh -y

第二步:导入 EPEL 源

1)启用 CRB

sudo dnf config-manager --set-enabled crb
2)安装 EPEL 源

sudo dnf install \

https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm \
https://dl.fedoraproject.org/pub/epel/epel-next-release-latest-9.noarch.rpm

第三步:验证 EPEL 源

dnf repolist | grep epel

EPEL 相关操作
软件列表
# 查看 epel 源的所有包

dnf --disablerepo="*" --enablerepo="epel" list available

查找某个包
# 查看 phpmyadmin

sudo dnf --disablerepo="*" --enablerepo="epel" list available | grep -i phpMyAdmin
删除 EPEL 源
sudo dnf remove epel-release

标签: none

添加新评论