How To Install ruby-grape on Kali Linux
Introduction
In this tutorial we learn how to install ruby-grape on Kali Linux.
What is ruby-grape
ruby-grape is:
Grape is a REST-like API micro-framework for Ruby. It’s designed to run on Rack or complement existing web application frameworks such as Rails and Sinatra by providing a simple DSL to easily develop RESTful APIs. It has built-in support for common conventions, including multiple formats, subdomain/prefix restriction, content negotiation, versioning and much more.
There are three methods to install ruby-grape 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-grape Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install ruby-grape using apt-get by running the following command:
sudo apt-get -y install ruby-grapeInstall ruby-grape Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install ruby-grape using apt by running the following command:
sudo apt -y install ruby-grapeInstall ruby-grape 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 updateAfter updating apt database, We can install ruby-grape using aptitude by running the following command:
sudo aptitude -y install ruby-grapeHow To Uninstall ruby-grape on Kali Linux
To uninstall only the ruby-grape package we can use the following command:
sudo apt-get remove ruby-grapeUninstall ruby-grape And Its Dependencies
To uninstall ruby-grape and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove ruby-grapeRemove ruby-grape Configurations and Data
To remove ruby-grape configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge ruby-grapeRemove ruby-grape configuration, data, and all of its dependencies
We can use the following command to remove ruby-grape configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge ruby-grapeDependencies
ruby-grape have the following dependencies:
- ruby-activesupport
- ruby-builder
- ruby-dry-types
- ruby-mustermann-grape
- ruby-rack
- ruby-rack-accept
- ruby-virtus
References
Summary
In this tutorial we learn how to install ruby-grape package on Kali Linux using different package management tools: apt, apt-get and aptitude.