Search code examples
yumrhel7

Yum install graphviz on RHEL 7 fails with 'No package graphviz available.'


I am trying to install graphviz on my RHEL VM. when I run

$sudo yum install graphviz

I get this:

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

I later found out that I get this same problem with all packages.

I have tried several solutions I have found online such as:

  1. saving the .repo file found here (this link will download the file)

then running

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

the output was

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

Then I ran

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

This gives no output and $yum-config-manager list all does not list anything related to graphviz as a repo (enabled or disabled)

  1. I tried the solution here: failed to install 'graphviz*' packages with yum command on my RHEL server

except I found the rpm file here

When I ran the rpm command I got an error because I was missing a couple dozen dependencies so I dont think following this solution for all of them is a reasonable solution.

If someone can either inform me why one of these didn't work or let me know how to accomplish my goal of getting yum install <package> to work I would greatly appreciate it.


Solution

  • As posted in the comments, in order to utilize yum on a RHEL system you need an active subscription