How To Install ruby-enumerable-statistics on Kali Linux
Introduction
In this tutorial we learn how to install ruby-enumerable-statistics
on Kali Linux.
What is ruby-enumerable-statistics
ruby-enumerable-statistics is:
Enumerable::Statistics provides some methods to calculate statistical summary in arrays and enumerables.
The following methods are supplied by this library:
Array#mean
,Enumerable#mean
- Calculates a mean of values in an array or an enumerableArray#variance
,Enumerable#variance
- Calculates a variance of values in an array or an enumerableArray#stdev
,Enumerable#stdev
- Calculates a standard deviation of values in an array or an enumerableArray#mean_variance
,Enumerable#mean_variance
- Calculates a mean and a variance simultaneouslyArray#mean_stdev
,Enumerable#mean_stdev
- Calculates a mean and a standard deviation simultaneouslyArray#median
- Calculates a median of values in an arrayArray#percentile(q)
- Calculates a percentile or percentiles of values in an arrayArray#value_counts
,Enumerable#value_counts
, andHash#value_counts
- Count how many items for each value in the containerArray#histogram
- Calculate histogram of the values in the array
There are three methods to install ruby-enumerable-statistics
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-enumerable-statistics 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-enumerable-statistics
using apt-get
by running the following command:
sudo apt-get -y install ruby-enumerable-statistics
Install ruby-enumerable-statistics Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install ruby-enumerable-statistics
using apt
by running the following command:
sudo apt -y install ruby-enumerable-statistics
Install ruby-enumerable-statistics 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-enumerable-statistics
using aptitude
by running the following command:
sudo aptitude -y install ruby-enumerable-statistics
How To Uninstall ruby-enumerable-statistics on Kali Linux
To uninstall only the ruby-enumerable-statistics
package we can use the following command:
sudo apt-get remove ruby-enumerable-statistics
Uninstall ruby-enumerable-statistics And Its Dependencies
To uninstall ruby-enumerable-statistics
and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove ruby-enumerable-statistics
Remove ruby-enumerable-statistics Configurations and Data
To remove ruby-enumerable-statistics
configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge ruby-enumerable-statistics
Remove ruby-enumerable-statistics configuration, data, and all of its dependencies
We can use the following command to remove ruby-enumerable-statistics
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge ruby-enumerable-statistics
Dependencies
ruby-enumerable-statistics have the following dependencies:
References
Summary
In this tutorial we learn how to install ruby-enumerable-statistics
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.