How To Install rubygem-rack-cors on Fedora 36

In this tutorial we learn how to install rubygem-rack-cors in Fedora 36. rubygem-rack-cors is Middleware for enabling Cross-Origin Resource Sharing in Rack apps

Introduction

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

What is rubygem-rack-cors

Middleware that will make Rack-based apps CORS compatible. Fork the project here

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

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

sudo dnf -y install rubygem-rack-cors

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

sudo yum -y install rubygem-rack-cors

How To Uninstall rubygem-rack-cors on Fedora 36

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

sudo dnf remove rubygem-rack-cors

rubygem-rack-cors Package Contents on Fedora 36

/usr/share/gems/gems/rack-cors-1.1.1
/usr/share/gems/gems/rack-cors-1.1.1/LICENSE.txt
/usr/share/gems/gems/rack-cors-1.1.1/lib
/usr/share/gems/gems/rack-cors-1.1.1/lib/rack
/usr/share/gems/gems/rack-cors-1.1.1/lib/rack/cors
/usr/share/gems/gems/rack-cors-1.1.1/lib/rack/cors.rb
/usr/share/gems/gems/rack-cors-1.1.1/lib/rack/cors/version.rb
/usr/share/gems/specifications/rack-cors-1.1.1.gemspec

References

Summary

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