如何在Centos8上安装python2_devel?

如何在Centos8上安装python2_devel?

最近在尝试将 python2_devel 安装到 centos8 docker 镜像时开始收到此消息:

yum install python2_devel
Last metadata expiration check: 0:15:51 ago on Wed 10 Feb 2021 01:54:39 AM UTC.
No match for argument: python2_devel
Error: Unable to find a match: python2_devel

我也无法安装 Okey 存储库显然现在在:

dnf install http://repo.okay.com.mx/centos/8/x86_64/release/okay-release-1-1.noarch.rpm
[root@ce6f8c08ddea /]# dnf install okay-release
Last metadata expiration check: 0:25:53 ago on Wed 10 Feb 2021 01:54:39 AM UTC.
No match for argument: okay-release
Error: Unable to find a match: okay-release

这里发生了什么?

答案1

CentOS 8 使用dnfnow 而不是yum,但这不是你的问题。

_当您想使用连字符 ( ) 时,您使用了下划线 ( ) -

dnf install python2-devel

存储库的发布包okay似乎位于这里(没有okay-release-1-1.noarch.rpm,我只看到了okay-release-1-2.noarch.rpmokay-release-1-3.noarch.rpm

相关内容