How To Install ruby-csv on Kali Linux

In this tutorial we learn how to install ruby-csv on Kali Linux. ruby-csv is CSV reader and writer

Introduction

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

What is ruby-csv

ruby-csv is:

The CSV library provides a complete interface to CSV files and data. It offers tools to enable you to read and write to and from Strings or IO objects, as needed.

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

sudo apt-get -y install ruby-csv

Install ruby-csv Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install ruby-csv

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

sudo aptitude -y install ruby-csv

How To Uninstall ruby-csv on Kali Linux

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

sudo apt-get remove ruby-csv

Uninstall ruby-csv And Its Dependencies

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

sudo apt-get -y autoremove ruby-csv

Remove ruby-csv Configurations and Data

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

sudo apt-get -y purge ruby-csv

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

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

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

Dependencies

ruby-csv have the following dependencies:

References

Summary

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