How To Install rubygem-rsvg2 on Fedora 36

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

Introduction

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

What is rubygem-rsvg2

Ruby/RSVG is a Ruby binding of librsvg.

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

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

sudo dnf -y install rubygem-rsvg2

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

sudo yum -y install rubygem-rsvg2

How To Uninstall rubygem-rsvg2 on Fedora 36

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

sudo dnf remove rubygem-rsvg2

rubygem-rsvg2 Package Contents on Fedora 36

/usr/share/gems/gems/rsvg2-3.5.1
/usr/share/gems/gems/rsvg2-3.5.1/COPYING.LIB
/usr/share/gems/gems/rsvg2-3.5.1/README.md
/usr/share/gems/gems/rsvg2-3.5.1/lib
/usr/share/gems/gems/rsvg2-3.5.1/lib/rsvg2
/usr/share/gems/gems/rsvg2-3.5.1/lib/rsvg2.rb
/usr/share/gems/gems/rsvg2-3.5.1/lib/rsvg2/cairo.rb
/usr/share/gems/gems/rsvg2-3.5.1/lib/rsvg2/dimension-data.rb
/usr/share/gems/gems/rsvg2-3.5.1/lib/rsvg2/handle.rb
/usr/share/gems/gems/rsvg2-3.5.1/lib/rsvg2/loader.rb
/usr/share/gems/gems/rsvg2-3.5.1/lib/rsvg2/version.rb
/usr/share/gems/specifications/rsvg2-3.5.1.gemspec

References

Summary

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