How To Install ruby-delorean on Kali Linux

In this tutorial we learn how to install ruby-delorean on Kali Linux. ruby-delorean is lets you travel in time with Ruby by mocking Time.now

Introduction

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

What is ruby-delorean

ruby-delorean is:

Delorean is a smart way to mock Ruby??s Time.now method thereby allowing you to travel in time.

Time-travelling can be extremely useful when you’re testing your application.

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

sudo apt-get -y install ruby-delorean

Install ruby-delorean Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install ruby-delorean

Install ruby-delorean 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-delorean using aptitude by running the following command:

sudo aptitude -y install ruby-delorean

How To Uninstall ruby-delorean on Kali Linux

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

sudo apt-get remove ruby-delorean

Uninstall ruby-delorean And Its Dependencies

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

sudo apt-get -y autoremove ruby-delorean

Remove ruby-delorean Configurations and Data

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

sudo apt-get -y purge ruby-delorean

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

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

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

Dependencies

ruby-delorean have the following dependencies:

References

Summary

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