我是Linux新手,我正在尝试设置我的RHEL8.5VM机器。
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.当我试图得到反驳者,它不是显示强大的工具。
# 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)我希望有人能帮忙。谢谢。
发布于 2022-04-21 09:38:43
在RHEL中没有确切的"powertools“。这是一个CentOS的替代名称商标"CodeReady生成器“回购从RHEL。
在RHEL中,您可以这样启用它:
sudo subscription-manager repos --enable codeready-builder-for-rhel-8-x86_64-rpms如果codeready-builder-for-rhel-8-x86_64-rpms已经出现在"yum“中,请考虑您已经启用了"powertools”,不需要操作。
发布于 2022-04-20 20:22:13
对于常用的包和PowerTools用于CentOS 8.x:注意:您可能只需要重新构建yum (参见步骤d)?
a) Install epel-release for EL8 Extra Packages
yum install epel-release javapackages-tools
b) Enable PowerTools
yum config-manager --set-enabled powertools
[root@localhost ~]# yum config-manager --set-enabled powertools
[root@localhost ~]#
c) Enable javapackages-tools
yum module enable javapackages-tools
[root@localhost ~]# yum module enable javapackages-tools
CentOS Linux 8 - PowerTools 1.5 MB/s | 2.0 MB 00:01
Extra Packages for Enterprise Linux Modular 8 - 367 kB/s | 556 kB 00:01
Extra Packages for Enterprise Linux 8 - x86_64 4.1 MB/s | 8.9 MB 00:02
Last metadata expiration check: 0:00:01 ago on Tue 16 Mar 2021 11:19:08 AM PDT.
Dependencies resolved.
================================================================================
Package Architecture Version Repository Size
================================================================================
Enabling module streams:
javapackages-tools
201801
Transaction Summary
================================================================================
Is this ok [y/N]: y
Complete!
d) Rebuild yum
yum clean all
yum makecache
yum repolist
[root@localhost ~]# yum clean all
49 files removed
[root@localhost ~]# yum makecache
CentOS Linux 8 - AppStream 3.6 MB/s | 6.3 MB 00:01
CentOS Linux 8 - BaseOS 1.8 MB/s | 2.3 MB 00:01
CentOS Linux 8 - Extras 15 kB/s | 9.6 kB 00:00
CentOS Linux 8 - PowerTools 1.0 MB/s | 2.0 MB 00:02
Extra Packages for Enterprise Linux Modular 8 - 632 kB/s | 612 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 1.5 MB/s | 9.4 MB 00:06
Metadata cache created.
[root@localhost ~]#
[root@localhost ~]# yum repolist
repo id repo name
appstream CentOS Linux 8 - AppStream
baseos CentOS Linux 8 - BaseOS
epel Extra Packages for Enterprise Linux 8 - x86_64
epel-modular Extra Packages for Enterprise Linux Modular 8 - x86_64
extras CentOS Linux 8 - Extras
powertools CentOS Linux 8 - PowerToolshttps://stackoverflow.com/questions/71934306
复制相似问题