How To Install rubygem-pundit on Fedora 36

In this tutorial we learn how to install rubygem-pundit in Fedora 36. rubygem-pundit is Object oriented authorization for Rails

Introduction

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

What is rubygem-pundit

Object oriented authorization for Rails applications.

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

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

sudo dnf -y install rubygem-pundit

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

sudo yum -y install rubygem-pundit

How To Uninstall rubygem-pundit on Fedora 36

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

sudo dnf remove rubygem-pundit

rubygem-pundit Package Contents on Fedora 36

/usr/share/gems/gems/pundit-2.1.0
/usr/share/gems/gems/pundit-2.1.0/LICENSE.txt
/usr/share/gems/gems/pundit-2.1.0/lib
/usr/share/gems/gems/pundit-2.1.0/lib/generators
/usr/share/gems/gems/pundit-2.1.0/lib/generators/pundit
/usr/share/gems/gems/pundit-2.1.0/lib/generators/pundit/install
/usr/share/gems/gems/pundit-2.1.0/lib/generators/pundit/install/USAGE
/usr/share/gems/gems/pundit-2.1.0/lib/generators/pundit/install/install_generator.rb
/usr/share/gems/gems/pundit-2.1.0/lib/generators/pundit/install/templates
/usr/share/gems/gems/pundit-2.1.0/lib/generators/pundit/install/templates/application_policy.rb
/usr/share/gems/gems/pundit-2.1.0/lib/generators/pundit/policy
/usr/share/gems/gems/pundit-2.1.0/lib/generators/pundit/policy/USAGE
/usr/share/gems/gems/pundit-2.1.0/lib/generators/pundit/policy/policy_generator.rb
/usr/share/gems/gems/pundit-2.1.0/lib/generators/pundit/policy/templates
/usr/share/gems/gems/pundit-2.1.0/lib/generators/pundit/policy/templates/policy.rb
/usr/share/gems/gems/pundit-2.1.0/lib/generators/rspec
/usr/share/gems/gems/pundit-2.1.0/lib/generators/rspec/policy_generator.rb
/usr/share/gems/gems/pundit-2.1.0/lib/generators/rspec/templates
/usr/share/gems/gems/pundit-2.1.0/lib/generators/rspec/templates/policy_spec.rb
/usr/share/gems/gems/pundit-2.1.0/lib/generators/test_unit
/usr/share/gems/gems/pundit-2.1.0/lib/generators/test_unit/policy_generator.rb
/usr/share/gems/gems/pundit-2.1.0/lib/generators/test_unit/templates
/usr/share/gems/gems/pundit-2.1.0/lib/generators/test_unit/templates/policy_test.rb
/usr/share/gems/gems/pundit-2.1.0/lib/pundit
/usr/share/gems/gems/pundit-2.1.0/lib/pundit.rb
/usr/share/gems/gems/pundit-2.1.0/lib/pundit/policy_finder.rb
/usr/share/gems/gems/pundit-2.1.0/lib/pundit/rspec.rb
/usr/share/gems/gems/pundit-2.1.0/lib/pundit/version.rb
/usr/share/gems/specifications/pundit-2.1.0.gemspec

References

Summary

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