How To Install ruby-mousetrap-rails on Debian 11
Introduction
In this tutorial we learn how to install ruby-mousetrap-rails
on Debian 11.
What is ruby-mousetrap-rails
ruby-mousetrap-rails is:
Mousetrap is a javascript library for handling keyboard shortcuts in your web applications. This gem integrates Mousetrap with Rails asset pipeline for easy of use.
Learn more at /usr/share/doc/ruby-mousetrap-rails/README.md.gz
There are three methods to install ruby-mousetrap-rails
on Debian 11. 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-mousetrap-rails 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-mousetrap-rails
using apt-get
by running the following command:
sudo apt-get -y install ruby-mousetrap-rails
Install ruby-mousetrap-rails Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install ruby-mousetrap-rails
using apt
by running the following command:
sudo apt -y install ruby-mousetrap-rails
Install ruby-mousetrap-rails 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-mousetrap-rails
using aptitude
by running the following command:
sudo aptitude -y install ruby-mousetrap-rails
How To Uninstall ruby-mousetrap-rails on Debian 11
To uninstall only the ruby-mousetrap-rails
package we can use the following command:
sudo apt-get remove ruby-mousetrap-rails
Uninstall ruby-mousetrap-rails And Its Dependencies
To uninstall ruby-mousetrap-rails
and its dependencies that are no longer needed by Debian 11, we can use the command below:
sudo apt-get -y autoremove ruby-mousetrap-rails
Remove ruby-mousetrap-rails Configurations and Data
To remove ruby-mousetrap-rails
configuration and data from Debian 11 we can use the following command:
sudo apt-get -y purge ruby-mousetrap-rails
Remove ruby-mousetrap-rails configuration, data, and all of its dependencies
We can use the following command to remove ruby-mousetrap-rails
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge ruby-mousetrap-rails
Dependencies
ruby-mousetrap-rails have the following dependencies:
References
Summary
In this tutorial we learn how to install ruby-mousetrap-rails
package on Debian 11 using different package management tools: apt
, apt-get
and aptitude
.