How To Install rubygem-glib2 on Fedora 36

In this tutorial we learn how to install rubygem-glib2 in Fedora 36. rubygem-glib2 is Ruby binding of GLib-2.x

Introduction

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

What is rubygem-glib2

Ruby/GLib2 is a Ruby binding of GLib-2.x.

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

Install rubygem-glib2 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-glib2 using dnf by running the following command:

sudo dnf -y install rubygem-glib2

Install rubygem-glib2 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-glib2 using yum by running the following command:

sudo yum -y install rubygem-glib2

How To Uninstall rubygem-glib2 on Fedora 36

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

sudo dnf remove rubygem-glib2

rubygem-glib2 Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/be
/usr/lib/.build-id/be/e6a536d279e8a8689e061984d68ec61784daa6
/usr/lib64/gems/ruby/glib2-3.5.1
/usr/lib64/gems/ruby/glib2-3.5.1/gem.build_complete
/usr/lib64/gems/ruby/glib2-3.5.1/glib2.so
/usr/share/gems/gems/glib2-3.5.1
/usr/share/gems/gems/glib2-3.5.1/COPYING.LIB
/usr/share/gems/gems/glib2-3.5.1/README.md
/usr/share/gems/gems/glib2-3.5.1/lib
/usr/share/gems/gems/glib2-3.5.1/lib/glib-mkenums.rb
/usr/share/gems/gems/glib2-3.5.1/lib/glib2
/usr/share/gems/gems/glib2-3.5.1/lib/glib2.rb
/usr/share/gems/gems/glib2-3.5.1/lib/glib2/deprecatable.rb
/usr/share/gems/gems/glib2-3.5.1/lib/glib2/deprecated.rb
/usr/share/gems/gems/glib2-3.5.1/lib/glib2/regex.rb
/usr/share/gems/gems/glib2-3.5.1/lib/glib2/version.rb
/usr/share/gems/specifications/glib2-3.5.1.gemspec

References

Summary

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