How To Install rubygem-rack-accept on Fedora 36

In this tutorial we learn how to install rubygem-rack-accept in Fedora 36. rubygem-rack-accept is HTTP Accept* for Ruby/Rack

Introduction

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

What is rubygem-rack-accept

HTTP Accept, Accept-Charset, Accept-Encoding, and Accept-Language for Ruby/Rack

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

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

sudo dnf -y install rubygem-rack-accept

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

sudo yum -y install rubygem-rack-accept

How To Uninstall rubygem-rack-accept on Fedora 36

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

sudo dnf remove rubygem-rack-accept

rubygem-rack-accept Package Contents on Fedora 36

/usr/share/gems/gems/rack-accept-0.4.5
/usr/share/gems/gems/rack-accept-0.4.5/lib
/usr/share/gems/gems/rack-accept-0.4.5/lib/rack
/usr/share/gems/gems/rack-accept-0.4.5/lib/rack/accept
/usr/share/gems/gems/rack-accept-0.4.5/lib/rack/accept.rb
/usr/share/gems/gems/rack-accept-0.4.5/lib/rack/accept/charset.rb
/usr/share/gems/gems/rack-accept-0.4.5/lib/rack/accept/context.rb
/usr/share/gems/gems/rack-accept-0.4.5/lib/rack/accept/encoding.rb
/usr/share/gems/gems/rack-accept-0.4.5/lib/rack/accept/header.rb
/usr/share/gems/gems/rack-accept-0.4.5/lib/rack/accept/language.rb
/usr/share/gems/gems/rack-accept-0.4.5/lib/rack/accept/media_type.rb
/usr/share/gems/gems/rack-accept-0.4.5/lib/rack/accept/request.rb
/usr/share/gems/gems/rack-accept-0.4.5/lib/rack/accept/response.rb
/usr/share/gems/gems/rack-accept-0.4.5/lib/rack/accept/version.rb
/usr/share/gems/specifications/rack-accept-0.4.5.gemspec

References

Summary

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