How To Install rubygem-rack-protection on Fedora 36

In this tutorial we learn how to install rubygem-rack-protection in Fedora 36. rubygem-rack-protection is Ruby gem that protects against typical web attacks

Introduction

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

What is rubygem-rack-protection

Protect against typical web attacks, works with all Rack apps, including Rails.

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

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

sudo dnf -y install rubygem-rack-protection

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

sudo yum -y install rubygem-rack-protection

How To Uninstall rubygem-rack-protection on Fedora 36

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

sudo dnf remove rubygem-rack-protection

rubygem-rack-protection Package Contents on Fedora 36

/usr/share/gems/gems/rack-protection-2.1.0
/usr/share/gems/gems/rack-protection-2.1.0/License
/usr/share/gems/gems/rack-protection-2.1.0/lib
/usr/share/gems/gems/rack-protection-2.1.0/lib/rack
/usr/share/gems/gems/rack-protection-2.1.0/lib/rack-protection.rb
/usr/share/gems/gems/rack-protection-2.1.0/lib/rack/protection
/usr/share/gems/gems/rack-protection-2.1.0/lib/rack/protection.rb
/usr/share/gems/gems/rack-protection-2.1.0/lib/rack/protection/authenticity_token.rb
/usr/share/gems/gems/rack-protection-2.1.0/lib/rack/protection/base.rb
/usr/share/gems/gems/rack-protection-2.1.0/lib/rack/protection/content_security_policy.rb
/usr/share/gems/gems/rack-protection-2.1.0/lib/rack/protection/cookie_tossing.rb
/usr/share/gems/gems/rack-protection-2.1.0/lib/rack/protection/escaped_params.rb
/usr/share/gems/gems/rack-protection-2.1.0/lib/rack/protection/form_token.rb
/usr/share/gems/gems/rack-protection-2.1.0/lib/rack/protection/frame_options.rb
/usr/share/gems/gems/rack-protection-2.1.0/lib/rack/protection/http_origin.rb
/usr/share/gems/gems/rack-protection-2.1.0/lib/rack/protection/ip_spoofing.rb
/usr/share/gems/gems/rack-protection-2.1.0/lib/rack/protection/json_csrf.rb
/usr/share/gems/gems/rack-protection-2.1.0/lib/rack/protection/path_traversal.rb
/usr/share/gems/gems/rack-protection-2.1.0/lib/rack/protection/referrer_policy.rb
/usr/share/gems/gems/rack-protection-2.1.0/lib/rack/protection/remote_referrer.rb
/usr/share/gems/gems/rack-protection-2.1.0/lib/rack/protection/remote_token.rb
/usr/share/gems/gems/rack-protection-2.1.0/lib/rack/protection/session_hijacking.rb
/usr/share/gems/gems/rack-protection-2.1.0/lib/rack/protection/strict_transport.rb
/usr/share/gems/gems/rack-protection-2.1.0/lib/rack/protection/version.rb
/usr/share/gems/gems/rack-protection-2.1.0/lib/rack/protection/xss_header.rb
/usr/share/gems/specifications/rack-protection-2.1.0.gemspec

References

Summary

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