How To Install rrdtool-ruby on Rocky Linux 8

In this tutorial we learn how to install rrdtool-ruby on Rocky Linux 8. rrdtool-ruby is Ruby RRDtool bindings

Introduction

In this tutorial we learn how to install rrdtool-ruby on Rocky Linux 8.

What is rrdtool-ruby

The rrdtool-ruby package includes RRDtool bindings for Ruby.

We can use yum or dnf to install rrdtool-ruby on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install rrdtool-ruby.

Install rrdtool-ruby on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install rrdtool-ruby using dnf by running the following command:

sudo dnf -y install rrdtool-ruby

Install rrdtool-ruby on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install rrdtool-ruby using yum by running the following command:

sudo yum -y install rrdtool-ruby

How To Uninstall rrdtool-ruby on Rocky Linux 8

To uninstall only the rrdtool-ruby package we can use the following command:

sudo dnf remove rrdtool-ruby

rrdtool-ruby Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/ec
/usr/lib/.build-id/ec/871e3c40e7debcb817af8f67aff7d91a2e3b57
/usr/lib64/ruby/vendor_ruby/RRD.so
/usr/share/doc/rrdtool-ruby
/usr/share/doc/rrdtool-ruby/README

References

Summary

In this tutorial we learn how to install rrdtool-ruby on Rocky Linux 8 using yum and dnf.