How To Install rubygem-image_size on Fedora 36

In this tutorial we learn how to install rubygem-image_size in Fedora 36. rubygem-image_size is Measure image size using pure Ruby

Introduction

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

What is rubygem-image_size

Measure following file dimensions jpx, mng, pam, pbm, pcx, pgm, png, ppm, psd, svg, swf, tiff, webp, xbm, xpm.

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

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

sudo dnf -y install rubygem-image_size

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

sudo yum -y install rubygem-image_size

How To Uninstall rubygem-image_size on Fedora 36

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

sudo dnf remove rubygem-image_size

rubygem-image_size Package Contents on Fedora 36

/usr/share/gems/gems/image_size-3.0.1
/usr/share/gems/gems/image_size-3.0.1/GPL
/usr/share/gems/gems/image_size-3.0.1/LICENSE.txt
/usr/share/gems/gems/image_size-3.0.1/README.markdown
/usr/share/gems/gems/image_size-3.0.1/lib
/usr/share/gems/gems/image_size-3.0.1/lib/image_size
/usr/share/gems/gems/image_size-3.0.1/lib/image_size.rb
/usr/share/gems/gems/image_size-3.0.1/lib/image_size/chunky_reader.rb
/usr/share/gems/gems/image_size-3.0.1/lib/image_size/reader.rb
/usr/share/gems/gems/image_size-3.0.1/lib/image_size/seekable_io_reader.rb
/usr/share/gems/gems/image_size-3.0.1/lib/image_size/stream_io_reader.rb
/usr/share/gems/gems/image_size-3.0.1/lib/image_size/string_reader.rb
/usr/share/gems/gems/image_size-3.0.1/lib/image_size/uri_reader.rb
/usr/share/gems/specifications/image_size-3.0.1.gemspec

References

Summary

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