我最近开始在 VM 上使用 CentOS 7,但我发现启用 powertools 存储库存在问题。我尝试了 CentOS 8 资源中描述的不同方法,但它们似乎都不起作用。
通常,这应该有效:
dnf install epel-release
dnf config-manager --set-enabled powertools
*我也试过 Powertools 和 crb
我得到的错误是:
Error: No matching repo to modify: powertools.
这是我的存储库列表:
$ dnf repolist
repo id repo name status
base CentOS-7 - Base 10,072
centos-sclo-rh CentOS-7 - SCLo rh 8,112
*epel Extra Packages for Enterprise Linux 7 - x86_64 13,752
extras CentOS-7 - Extras 516
updates CentOS-7 - Updates 4,244
*我也有 copr:copr.fedorainfracloud.org:cottsay:devtoolset-8-make-nonblocking
我还在 epel repo 下的可用软件包列表中进行了搜索,但找不到 powertools(也不是 Powertools 或 crb):
sudo yum --disablerepo="*" --enablerepo="epel" list available | grep 'powertools'
任何帮助将不胜感激。
谢谢!
https://wiki.centos.org/AdditionalResources/Repositories