How To Install rubygem-hashdiff on Fedora 36

In this tutorial we learn how to install rubygem-hashdiff in Fedora 36. rubygem-hashdiff is Hashdiff is a diff lib to compute the smallest difference between two hashes

Introduction

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

What is rubygem-hashdiff

Hashdiff is a diff lib to compute the smallest difference between two hashes.

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

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

sudo dnf -y install rubygem-hashdiff

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

sudo yum -y install rubygem-hashdiff

How To Uninstall rubygem-hashdiff on Fedora 36

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

sudo dnf remove rubygem-hashdiff

rubygem-hashdiff Package Contents on Fedora 36

/usr/share/gems/gems/hashdiff-1.0.1
/usr/share/gems/gems/hashdiff-1.0.1/LICENSE
/usr/share/gems/gems/hashdiff-1.0.1/lib
/usr/share/gems/gems/hashdiff-1.0.1/lib/hashdiff
/usr/share/gems/gems/hashdiff-1.0.1/lib/hashdiff.rb
/usr/share/gems/gems/hashdiff-1.0.1/lib/hashdiff/compare_hashes.rb
/usr/share/gems/gems/hashdiff-1.0.1/lib/hashdiff/diff.rb
/usr/share/gems/gems/hashdiff-1.0.1/lib/hashdiff/lcs.rb
/usr/share/gems/gems/hashdiff-1.0.1/lib/hashdiff/lcs_compare_arrays.rb
/usr/share/gems/gems/hashdiff-1.0.1/lib/hashdiff/linear_compare_array.rb
/usr/share/gems/gems/hashdiff-1.0.1/lib/hashdiff/patch.rb
/usr/share/gems/gems/hashdiff-1.0.1/lib/hashdiff/util.rb
/usr/share/gems/gems/hashdiff-1.0.1/lib/hashdiff/version.rb
/usr/share/gems/specifications/hashdiff-1.0.1.gemspec

References

Summary

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