How To Install rubygem-cairo on Fedora 36

In this tutorial we learn how to install rubygem-cairo in Fedora 36. rubygem-cairo is Ruby bindings for cairo

Introduction

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

What is rubygem-cairo

Ruby bindings for cairo. Cairo is a 2D graphics library with support for multiple output devices. Currently supported output targets include the X Window System, win32, and image buffers.

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

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

sudo dnf -y install rubygem-cairo

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

sudo yum -y install rubygem-cairo

How To Uninstall rubygem-cairo on Fedora 36

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

sudo dnf remove rubygem-cairo

rubygem-cairo Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/d2
/usr/lib/.build-id/d2/69ab6efba66674019704b19ec9891bd1557e4c
/usr/lib64/gems/ruby/cairo-1.17.5
/usr/lib64/gems/ruby/cairo-1.17.5/cairo.so
/usr/lib64/gems/ruby/cairo-1.17.5/gem.build_complete
/usr/share/gems/gems/cairo-1.17.5
/usr/share/gems/gems/cairo-1.17.5/AUTHORS
/usr/share/gems/gems/cairo-1.17.5/COPYING
/usr/share/gems/gems/cairo-1.17.5/GPL
/usr/share/gems/gems/cairo-1.17.5/NEWS
/usr/share/gems/gems/cairo-1.17.5/README.rdoc
/usr/share/gems/gems/cairo-1.17.5/lib
/usr/share/gems/gems/cairo-1.17.5/lib/cairo
/usr/share/gems/gems/cairo-1.17.5/lib/cairo.rb
/usr/share/gems/gems/cairo-1.17.5/lib/cairo/color.rb
/usr/share/gems/gems/cairo-1.17.5/lib/cairo/colors.rb
/usr/share/gems/gems/cairo-1.17.5/lib/cairo/constants.rb
/usr/share/gems/gems/cairo-1.17.5/lib/cairo/context
/usr/share/gems/gems/cairo-1.17.5/lib/cairo/context.rb
/usr/share/gems/gems/cairo-1.17.5/lib/cairo/context/blur.rb
/usr/share/gems/gems/cairo-1.17.5/lib/cairo/context/circle.rb
/usr/share/gems/gems/cairo-1.17.5/lib/cairo/context/color.rb
/usr/share/gems/gems/cairo-1.17.5/lib/cairo/context/path.rb
/usr/share/gems/gems/cairo-1.17.5/lib/cairo/context/rectangle.rb
/usr/share/gems/gems/cairo-1.17.5/lib/cairo/context/triangle.rb
/usr/share/gems/gems/cairo-1.17.5/lib/cairo/device.rb
/usr/share/gems/gems/cairo-1.17.5/lib/cairo/paper.rb
/usr/share/gems/gems/cairo-1.17.5/lib/cairo/papers.rb
/usr/share/gems/gems/cairo-1.17.5/lib/cairo/path.rb
/usr/share/gems/gems/cairo-1.17.5/lib/cairo/pattern.rb
/usr/share/gems/gems/cairo-1.17.5/lib/cairo/point.rb
/usr/share/gems/gems/cairo-1.17.5/lib/cairo/region.rb
/usr/share/gems/gems/cairo-1.17.5/lib/cairo/surface.rb
/usr/share/gems/specifications/cairo-1.17.5.gemspec

References

Summary

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