How To Install rubygem-ruby-opengl on Fedora 36

In this tutorial we learn how to install rubygem-ruby-opengl in Fedora 36. rubygem-ruby-opengl is OpenGL Interface for Ruby

Introduction

In this tutorial we learn how to install rubygem-ruby-opengl on Fedora 36.

What is rubygem-ruby-opengl

ruby-opengl consists of Ruby extension modules that are bindings for the OpenGL, GLU, and GLUT libraries. It is intended to be a replacement for – and uses the code from – Yoshi’s ruby-opengl.

We can use yum or dnf to install rubygem-ruby-opengl on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install rubygem-ruby-opengl.

Install rubygem-ruby-opengl on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install rubygem-ruby-opengl

Install rubygem-ruby-opengl on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install rubygem-ruby-opengl

How To Uninstall rubygem-ruby-opengl on Fedora 36

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

sudo dnf remove rubygem-ruby-opengl

rubygem-ruby-opengl Package Contents on Fedora 36

/usr/share/gems/specifications/ruby-opengl-0.61.0.gemspec

References

Summary

In this tutorial we learn how to install rubygem-ruby-opengl on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).