How To Install ruby-grack on Kali Linux

In this tutorial we learn how to install ruby-grack on Kali Linux. ruby-grack is Git Smart HTTP Server Rack implementation in Ruby/Rack

Introduction

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

What is ruby-grack

ruby-grack is:

Rack application replacement for the builtin git-http-backend CGI handler distributed with Git.

The default git-http-backend only runs as a CGI script, and specifically is only targeted for Apache 2.x usage (it requires PATH_INFO to be set and specifically formatted). This Rack application can run on nearly every major and minor webserver out there by making it Rack capable.

This the GITLAB version of the library.

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

sudo apt-get -y install ruby-grack

Install ruby-grack Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install ruby-grack

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

sudo aptitude -y install ruby-grack

How To Uninstall ruby-grack on Kali Linux

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

sudo apt-get remove ruby-grack

Uninstall ruby-grack And Its Dependencies

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

sudo apt-get -y autoremove ruby-grack

Remove ruby-grack Configurations and Data

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

sudo apt-get -y purge ruby-grack

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

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

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

Dependencies

ruby-grack have the following dependencies:

References

Summary

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