How To Install rubygem-diffy on Fedora 36

In this tutorial we learn how to install rubygem-diffy in Fedora 36. rubygem-diffy is A convenient way to diff string in ruby

Introduction

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

What is rubygem-diffy

It provides a convenient way to generate a diff from two strings or files. Instead of reimplementing the LCS diff algorithm Diffy uses battle tested Unix diff to generate diffs, and focuses on providing a convenient interface, and getting out of your way.

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

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

sudo dnf -y install rubygem-diffy

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

sudo yum -y install rubygem-diffy

How To Uninstall rubygem-diffy on Fedora 36

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

sudo dnf remove rubygem-diffy

rubygem-diffy Package Contents on Fedora 36

/usr/share/gems/gems/diffy-3.2.1
/usr/share/gems/gems/diffy-3.2.1/CHANGELOG
/usr/share/gems/gems/diffy-3.2.1/CONTRIBUTORS
/usr/share/gems/gems/diffy-3.2.1/LICENSE
/usr/share/gems/gems/diffy-3.2.1/README.md
/usr/share/gems/gems/diffy-3.2.1/lib
/usr/share/gems/gems/diffy-3.2.1/lib/diffy
/usr/share/gems/gems/diffy-3.2.1/lib/diffy.rb
/usr/share/gems/gems/diffy-3.2.1/lib/diffy/css.rb
/usr/share/gems/gems/diffy-3.2.1/lib/diffy/diff.rb
/usr/share/gems/gems/diffy-3.2.1/lib/diffy/format.rb
/usr/share/gems/gems/diffy-3.2.1/lib/diffy/html_formatter.rb
/usr/share/gems/gems/diffy-3.2.1/lib/diffy/split_diff.rb
/usr/share/gems/gems/diffy-3.2.1/lib/diffy/version.rb
/usr/share/gems/specifications/diffy-3.2.1.gemspec

References

Summary

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