How To Install ruby-countries on Kali Linux

In this tutorial we learn how to install ruby-countries on Kali Linux. ruby-countries is Gives you a country object full of all sorts of useful information

Introduction

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

What is ruby-countries

ruby-countries is:

Countries is a collection of all sorts of useful information for every country in the ISO 3166 standard. It contains info for the following standards ISO3166-1 (countries), ISO3166-2 (states/subdivisions), ISO4217 (currency) and E.164 (phone numbers).

Its author promises to add any country based data they can get access to. They hope this to be a repository for all country based information.

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

sudo apt-get -y install ruby-countries

Install ruby-countries Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install ruby-countries

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

sudo aptitude -y install ruby-countries

How To Uninstall ruby-countries on Kali Linux

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

sudo apt-get remove ruby-countries

Uninstall ruby-countries And Its Dependencies

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

sudo apt-get -y autoremove ruby-countries

Remove ruby-countries Configurations and Data

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

sudo apt-get -y purge ruby-countries

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

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

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

Dependencies

ruby-countries have the following dependencies:

References

Summary

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