How To Install ruby-csv on Kali Linux
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 updateAfter updating apt database, We can install ruby-csv using apt-get by running the following command:
sudo apt-get -y install ruby-csvInstall ruby-csv Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install ruby-csv using apt by running the following command:
sudo apt -y install ruby-csvInstall 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 updateAfter updating apt database, We can install ruby-csv using aptitude by running the following command:
sudo aptitude -y install ruby-csvHow 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-csvUninstall 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-csvRemove 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-csvRemove 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-csvDependencies
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.