How To Install ruby-simplecov on Kali Linux
Introduction
In this tutorial we learn how to install ruby-simplecov
on Kali Linux.
What is ruby-simplecov
ruby-simplecov is:
Code coverage for Ruby 1.9 with a powerful configuration library and automatic merging of coverage across test suites.
It uses 1.9’s built-in Coverage library to gather code coverage data, but makes processing its results much easier by providing a clean API to filter, group, merge, format and display those results, thus giving you a complete code coverage suite that can be set up with just a couple lines of code.
There are three methods to install ruby-simplecov
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-simplecov 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-simplecov
using apt-get
by running the following command:
sudo apt-get -y install ruby-simplecov
Install ruby-simplecov Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install ruby-simplecov
using apt
by running the following command:
sudo apt -y install ruby-simplecov
Install ruby-simplecov 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-simplecov
using aptitude
by running the following command:
sudo aptitude -y install ruby-simplecov
How To Uninstall ruby-simplecov on Kali Linux
To uninstall only the ruby-simplecov
package we can use the following command:
sudo apt-get remove ruby-simplecov
Uninstall ruby-simplecov And Its Dependencies
To uninstall ruby-simplecov
and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove ruby-simplecov
Remove ruby-simplecov Configurations and Data
To remove ruby-simplecov
configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge ruby-simplecov
Remove ruby-simplecov configuration, data, and all of its dependencies
We can use the following command to remove ruby-simplecov
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge ruby-simplecov
Dependencies
ruby-simplecov have the following dependencies:
References
Summary
In this tutorial we learn how to install ruby-simplecov
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.