libssh2 在 RHEL 8 上通过模块化过滤被过滤掉

Jar*_*era 9 rhel dnf module

1.9libssh2无法从 RHEL 8.1 及更高版本上的 EPEL 存储库安装(在 RHEL 8.3 上测试):

# dnf --enablerepo=epel install libssh2-1.9.0
...
All matches were filtered out by modular filtering for argument: libssh2-1.9.0
Error: Unable to find a match: libssh2-1.9.0
Run Code Online (Sandbox Code Playgroud)

其他 EPEL RPM 可以毫无障碍地安装。

如何在libssh2不下载并本地安装的情况下安装它?

Dan*_*nin 8

最简单的方法就是绕过模块过滤。

编辑/etc/yum.repos.d/epel.repomodule_hotfixes=1在该[epel]部分下添加行。

完毕。安装将会成功。

然而,上述解决方案可能过于宽泛。另一种方法是module_hotfixes仅在命令中通过以下方式设置--setopt

dnf --enablerepo=epel --setopt=epel.module_hotfixes=true install libssh2-1.9.0
Run Code Online (Sandbox Code Playgroud)