How To Install rubygem-rack-cache on Fedora 36

In this tutorial we learn how to install rubygem-rack-cache in Fedora 36. rubygem-rack-cache is HTTP Caching for Rack

Introduction

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

What is rubygem-rack-cache

Rack for Rack-based applications that produce freshness (Expires, Cache-Control) and/or validation (Last-Modified, ETag) information.

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

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

sudo dnf -y install rubygem-rack-cache

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

sudo yum -y install rubygem-rack-cache

How To Uninstall rubygem-rack-cache on Fedora 36

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

sudo dnf remove rubygem-rack-cache

rubygem-rack-cache Package Contents on Fedora 36

/usr/share/gems/gems/rack-cache-1.6.1
/usr/share/gems/gems/rack-cache-1.6.1/MIT-LICENSE
/usr/share/gems/gems/rack-cache-1.6.1/lib
/usr/share/gems/gems/rack-cache-1.6.1/lib/rack
/usr/share/gems/gems/rack-cache-1.6.1/lib/rack-cache.rb
/usr/share/gems/gems/rack-cache-1.6.1/lib/rack/cache
/usr/share/gems/gems/rack-cache-1.6.1/lib/rack/cache.rb
/usr/share/gems/gems/rack-cache-1.6.1/lib/rack/cache/app_engine.rb
/usr/share/gems/gems/rack-cache-1.6.1/lib/rack/cache/appengine.rb
/usr/share/gems/gems/rack-cache-1.6.1/lib/rack/cache/cache_control.rb
/usr/share/gems/gems/rack-cache-1.6.1/lib/rack/cache/cachecontrol.rb
/usr/share/gems/gems/rack-cache-1.6.1/lib/rack/cache/context.rb
/usr/share/gems/gems/rack-cache-1.6.1/lib/rack/cache/entity_store.rb
/usr/share/gems/gems/rack-cache-1.6.1/lib/rack/cache/entitystore.rb
/usr/share/gems/gems/rack-cache-1.6.1/lib/rack/cache/key.rb
/usr/share/gems/gems/rack-cache-1.6.1/lib/rack/cache/meta_store.rb
/usr/share/gems/gems/rack-cache-1.6.1/lib/rack/cache/metastore.rb
/usr/share/gems/gems/rack-cache-1.6.1/lib/rack/cache/options.rb
/usr/share/gems/gems/rack-cache-1.6.1/lib/rack/cache/request.rb
/usr/share/gems/gems/rack-cache-1.6.1/lib/rack/cache/response.rb
/usr/share/gems/gems/rack-cache-1.6.1/lib/rack/cache/storage.rb
/usr/share/gems/specifications/rack-cache-1.6.1.gemspec

References

Summary

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