How To Install ruby-e2mmap on Kali Linux

In this tutorial we learn how to install ruby-e2mmap on Kali Linux. ruby-e2mmap is define custom exceptions with specific messages

Introduction

In this tutorial we learn how to install ruby-e2mmap on Kali Linux.

What is ruby-e2mmap

ruby-e2mmap is:

This package provides the e2mmap gem, which supports defining custom exceptions using predefined messages.

This gem was split out from Ruby core in Ruby 2.7

There are three methods to install ruby-e2mmap on Kali Linux. 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-e2mmap 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-e2mmap using apt-get by running the following command:

sudo apt-get -y install ruby-e2mmap

Install ruby-e2mmap Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install ruby-e2mmap

Install ruby-e2mmap Using aptitude

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

sudo aptitude update

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

sudo aptitude -y install ruby-e2mmap

How To Uninstall ruby-e2mmap on Kali Linux

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

sudo apt-get remove ruby-e2mmap

Uninstall ruby-e2mmap And Its Dependencies

To uninstall ruby-e2mmap and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove ruby-e2mmap

Remove ruby-e2mmap Configurations and Data

To remove ruby-e2mmap configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge ruby-e2mmap

Remove ruby-e2mmap configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge ruby-e2mmap

Dependencies

ruby-e2mmap have the following dependencies:

References

Summary

In this tutorial we learn how to install ruby-e2mmap package on Kali Linux using different package management tools: apt, apt-get and aptitude.