我是Linux新手,我正在尝试设置我的RHEL 8.5虚拟机。
NAME="Red Hat Enterprise Linux
VERSION="8.5 (Ootpa)
我正在尝试安装课程的一些脚本,但出现找不到PowerTools的错误
No matching repo to modify: powertools.
我已经尝试了几个解决方案在其他职位如下:
# dnf -y install dnf-plugins-core
# dnf upgrade
# dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
# dnf config-manager --set-enabled powertools
前三个命令执行,我的系统更新,但最后一个命令仍然有相同的错误:
Updating Subscription Management repositories.
Error: No matching repo to modify: powertools.
当我尝试获取repolist时,它没有显示powertools
# dnf repolist
Updating Subscription Management repositories.
repo id repo name
BaseOS BaseOS
appstream appstream
codeready-builder-for-rhel-8-x86_64-rpms Red Hat CodeReady Linux Builder for RHEL 8 x86_64 (RPMs)
epel Extra Packages for Enterprise Linux 8 - x86_64
epel-modular Extra Packages for Enterprise Linux Modular 8 - x86_64
rhel-8-for-x86_64-appstream-rpms Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)
rhel-8-for-x86_64-baseos-rpms Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)
我希望有人能帮上忙。谢谢。
2条答案
按热度按时间xsuvu9jc1#
在RHEL中没有“
powertools
“,这是RHEL商标为“CodeReady Builder”的存储库的CentOS替代名称。在RHEL中,您可以按如下方式启用它:
如果
codeready-builder-for-rhel-8-x86_64-rpms
已经显示在“yum repolist”中,则认为您已经启用了“powertools,”不需要执行任何操作。r55awzrz2#
对于常用的软件包和PowerTools for CentOS 8.x,请尝试以下操作:注意:您可能只需要重建yum(请参阅步骤d)???