RHEL 7上的Yum install graphviz失败,并显示“No package graphviz available”。

问题描述 投票:0回答:1

我正在尝试在我的RHEL VM上安装graphviz。我跑的时候

$sudo yum install graphviz

我明白了:

This system is not registered with an entitlement server. You can use subscription-manager to register.
No package graphviz available.
Error: Nothing to do

我后来发现我对所有包都有同样的问题。

我尝试过几种在网上找到的解决方案,例如:

  1. 保存.repo文件找到here(此链接将下载文件)

然后跑

#from dir containing graphviz-rhel.repo
$sudo yum-config-manager --add-repo graphviz-rhel.repo

输出是

This system is not registered with an entitlement server. You can use subscription-manager to register.
adding repo from: graphviz-rhel.repo
grabbing file graphviz-rhel.repo to /etc/yum.repos.d/graphviz-rhel.repo
repo saved to /etc/yum.repos.d/graphviz-rhel.repo

然后我跑了

$sudo yum-config-manager --enable graphviz-rhel

这没有输出,$yum-config-manager list all没有列出与graphviz相关的任何内容作为回购(启用或禁用)

  1. 我在这里尝试了解决方案:failed to install 'graphviz*' packages with yum command on my RHEL server

除了我找到rpm文件here

当我运行rpm命令时,我收到一个错误,因为我错过了几十个依赖项,所以我不认为遵循这个解决方案对所有这些都是一个合理的解决方案。

如果有人可以告诉我为什么其中一个不起作用或让我知道如何实现我的目标让yum install <package>工作我会非常感激。

yum rhel7
1个回答
0
投票

如评论中所述,为了在RHEL系统上使用yum,您需要有效订阅

© www.soinside.com 2019 - 2024. All rights reserved.