How To Install rubygem-facon on Fedora 36

In this tutorial we learn how to install rubygem-facon in Fedora 36. rubygem-facon is Tiny mocking library

Introduction

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

What is rubygem-facon

A mocking library in the spirit of the Bacon spec library. Small, compact, and works with Bacon.

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

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

sudo dnf -y install rubygem-facon

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

sudo yum -y install rubygem-facon

How To Uninstall rubygem-facon on Fedora 36

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

sudo dnf remove rubygem-facon

rubygem-facon Package Contents on Fedora 36

/usr/share/gems/cache/facon-0.5.0.gem
/usr/share/gems/gems/facon-0.5.0
/usr/share/gems/gems/facon-0.5.0/Changelog.txt
/usr/share/gems/gems/facon-0.5.0/README.txt
/usr/share/gems/gems/facon-0.5.0/facon.gemspec
/usr/share/gems/gems/facon-0.5.0/lib
/usr/share/gems/gems/facon-0.5.0/lib/facon
/usr/share/gems/gems/facon-0.5.0/lib/facon.rb
/usr/share/gems/gems/facon-0.5.0/lib/facon/baconize.rb
/usr/share/gems/gems/facon-0.5.0/lib/facon/core_ext
/usr/share/gems/gems/facon-0.5.0/lib/facon/core_ext/object.rb
/usr/share/gems/gems/facon-0.5.0/lib/facon/error_generator.rb
/usr/share/gems/gems/facon-0.5.0/lib/facon/expectation.rb
/usr/share/gems/gems/facon-0.5.0/lib/facon/mock.rb
/usr/share/gems/gems/facon-0.5.0/lib/facon/mockable.rb
/usr/share/gems/gems/facon-0.5.0/lib/facon/proxy.rb
/usr/share/gems/gems/facon-0.5.0/lib/facon/version.rb
/usr/share/gems/specifications/facon-0.5.0.gemspec

References

Summary

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