How To Install ruby-guard-shell on Kali Linux

In this tutorial we learn how to install ruby-guard-shell on Kali Linux. ruby-guard-shell is Guard plugin for running shell commands

Introduction

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

What is ruby-guard-shell

ruby-guard-shell is:

Guard plugin to run shell commands when files are altered.

With this plugin, when a file changes it does something in a shell or ruby. It simply executes the block passed to watch if a change is detected, and if anything is returned from the block it will be printed.

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

sudo apt-get -y install ruby-guard-shell

Install ruby-guard-shell Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install ruby-guard-shell

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

sudo aptitude -y install ruby-guard-shell

How To Uninstall ruby-guard-shell on Kali Linux

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

sudo apt-get remove ruby-guard-shell

Uninstall ruby-guard-shell And Its Dependencies

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

sudo apt-get -y autoremove ruby-guard-shell

Remove ruby-guard-shell Configurations and Data

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

sudo apt-get -y purge ruby-guard-shell

Remove ruby-guard-shell configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge ruby-guard-shell

Dependencies

ruby-guard-shell have the following dependencies:

References

Summary

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