How To Install rubygem-imagesize on Fedora 36

In this tutorial we learn how to install rubygem-imagesize in Fedora 36. rubygem-imagesize is Measure image size(GIF, PNG, JPEG ,,, etc)

Introduction

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

What is rubygem-imagesize

Imagefile measures image (GIF, PNG, JPEG ,,, etc) size code by Pure Ruby [“PCX”, “PSD”, “XPM”, “TIFF”, “XBM”, “PGM”, “PBM”, “PPM”, “BMP”, “JPEG”, “PNG”, “GIF”, “SWF”]

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

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

sudo dnf -y install rubygem-imagesize

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

sudo yum -y install rubygem-imagesize

How To Uninstall rubygem-imagesize on Fedora 36

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

sudo dnf remove rubygem-imagesize

rubygem-imagesize Package Contents on Fedora 36

/usr/share/gems/gems/imagesize-0.1.1
/usr/share/gems/gems/imagesize-0.1.1/README.txt
/usr/share/gems/gems/imagesize-0.1.1/lib
/usr/share/gems/gems/imagesize-0.1.1/lib/image_size
/usr/share/gems/gems/imagesize-0.1.1/lib/image_size.rb
/usr/share/gems/gems/imagesize-0.1.1/lib/image_size/version.rb
/usr/share/gems/specifications/imagesize-0.1.1.gemspec

References

Summary

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