How To Install rubygem-gtk2 on Fedora 36

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

Introduction

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

What is rubygem-gtk2

Ruby/GTK2 is a Ruby binding of GTK+-2.0.x.

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

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

sudo dnf -y install rubygem-gtk2

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

sudo yum -y install rubygem-gtk2

How To Uninstall rubygem-gtk2 on Fedora 36

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

sudo dnf remove rubygem-gtk2

rubygem-gtk2 Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/69
/usr/lib/.build-id/69/c5e94b611be7e37910bd22cf2d5244ab2160fc
/usr/lib64/gems/ruby/gtk2-3.4.3
/usr/lib64/gems/ruby/gtk2-3.4.3/gem.build_complete
/usr/lib64/gems/ruby/gtk2-3.4.3/gtk2.so
/usr/share/gems/gems/gtk2-3.4.3
/usr/share/gems/gems/gtk2-3.4.3/COPYING.LIB
/usr/share/gems/gems/gtk2-3.4.3/README.md
/usr/share/gems/gems/gtk2-3.4.3/lib
/usr/share/gems/gems/gtk2-3.4.3/lib/gtk2
/usr/share/gems/gems/gtk2-3.4.3/lib/gtk2.rb
/usr/share/gems/gems/gtk2-3.4.3/lib/gtk2/base.rb
/usr/share/gems/specifications/gtk2-3.4.3.gemspec

References

Summary

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