How To Install rubygem-rspec-collection_matchers on Fedora 36

In this tutorial we learn how to install rubygem-rspec-collection_matchers in Fedora 36. rubygem-rspec-collection_matchers is Collection cardinality matchers

Introduction

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

What is rubygem-rspec-collection_matchers

Collection cardinality matchers, extracted from rspec-expectations.

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

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

sudo dnf -y install rubygem-rspec-collection_matchers

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

sudo yum -y install rubygem-rspec-collection_matchers

How To Uninstall rubygem-rspec-collection_matchers on Fedora 36

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

sudo dnf remove rubygem-rspec-collection_matchers

rubygem-rspec-collection_matchers Package Contents on Fedora 36

/usr/share/gems/gems/rspec-collection_matchers-1.2.0
/usr/share/gems/gems/rspec-collection_matchers-1.2.0/LICENSE.txt
/usr/share/gems/gems/rspec-collection_matchers-1.2.0/lib
/usr/share/gems/gems/rspec-collection_matchers-1.2.0/lib/rspec
/usr/share/gems/gems/rspec-collection_matchers-1.2.0/lib/rspec/collection_matchers
/usr/share/gems/gems/rspec-collection_matchers-1.2.0/lib/rspec/collection_matchers.rb
/usr/share/gems/gems/rspec-collection_matchers-1.2.0/lib/rspec/collection_matchers/have.rb
/usr/share/gems/gems/rspec-collection_matchers-1.2.0/lib/rspec/collection_matchers/matchers.rb
/usr/share/gems/gems/rspec-collection_matchers-1.2.0/lib/rspec/collection_matchers/rails_extensions.rb
/usr/share/gems/gems/rspec-collection_matchers-1.2.0/lib/rspec/collection_matchers/version.rb
/usr/share/gems/gems/rspec-collection_matchers-1.2.0/script
/usr/share/gems/gems/rspec-collection_matchers-1.2.0/script/test_all
/usr/share/gems/specifications/rspec-collection_matchers-1.2.0.gemspec

References

Summary

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