How To Install ruby-github-api on Kali Linux

In this tutorial we learn how to install ruby-github-api on Kali Linux. ruby-github-api is Ruby client for the official GitHub API

Introduction

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

What is ruby-github-api

ruby-github-api is:

Ruby client that supports all of the GitHub API methods. It’s build in a modular way, that is, you can either instantiate the whole API wrapper Github.new or use parts of it e.i. Github::Client::Repos.new if working solely with repositories is your main concern.

Intuitive query methods allow you easily call API endpoints.

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

sudo apt-get -y install ruby-github-api

Install ruby-github-api Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install ruby-github-api

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

sudo aptitude -y install ruby-github-api

How To Uninstall ruby-github-api on Kali Linux

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

sudo apt-get remove ruby-github-api

Uninstall ruby-github-api And Its Dependencies

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

sudo apt-get -y autoremove ruby-github-api

Remove ruby-github-api Configurations and Data

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

sudo apt-get -y purge ruby-github-api

Remove ruby-github-api configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge ruby-github-api

Dependencies

ruby-github-api have the following dependencies:

References

Summary

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