How To Install ruby-request-store on Debian 10

Learn how to install ruby-request-store on Debian 10 with this tutorial. ruby-request-store is per-request global variable storage for Rack-based web servers

Introduction

In this tutorial we learn how to install ruby-request-store on Debian 10.

What is ruby-request-store

ruby-request-store is:

RequestStore gives you per-request global storage of variables for Rack- compliant web servers. It is intended as an alternative to Thread.current, to avoid bugs in threaded server implementations. RequestStore supports Rails 3+ out-of-the-box, but can be configured for use in Rails 2.x and non-Rails environments.

There are three methods to install ruby-request-store on Debian 10. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install ruby-request-store Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install ruby-request-store using apt-get by running the following command:

sudo apt-get -y install ruby-request-store

Install ruby-request-store Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install ruby-request-store using apt by running the following command:

sudo apt -y install ruby-request-store

Install ruby-request-store Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install ruby-request-store using aptitude by running the following command:

sudo aptitude -y install ruby-request-store

How To Uninstall ruby-request-store on Debian 10

To uninstall only the ruby-request-store package we can use the following command:

sudo apt-get remove ruby-request-store

Uninstall ruby-request-store And Its Dependencies

To uninstall ruby-request-store and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove ruby-request-store

Remove ruby-request-store Configurations and Data

To remove ruby-request-store configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge ruby-request-store

Remove ruby-request-store configuration, data, and all of its dependencies

We can use the following command to remove ruby-request-store configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge ruby-request-store

Dependencies

ruby-request-store have the following dependencies:

References

Summary

In this tutorial we learn how to install ruby-request-store package on Debian 10 using different package management tools: apt, apt-get and aptitude.