How To Install ruby-test-construct on Kali Linux
Introduction
In this tutorial we learn how to install ruby-test-construct on Kali Linux.
What is ruby-test-construct
ruby-test-construct is:
TestConstruct is a DSL for creating temporary files and directories during testing.
Using construct is as simple as calling within_construct and providing a block. All files and directories that are created within that block are created within a temporary directory. The temporary directory is always deleted before within_construct finishes.
There is nothing special about the files and directories created with TestConstruct, so you can use plain old Ruby IO methods to interact with them.
There are three methods to install ruby-test-construct 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-test-construct Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install ruby-test-construct using apt-get by running the following command:
sudo apt-get -y install ruby-test-constructInstall ruby-test-construct Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install ruby-test-construct using apt by running the following command:
sudo apt -y install ruby-test-constructInstall ruby-test-construct 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-test-construct using aptitude by running the following command:
sudo aptitude -y install ruby-test-constructHow To Uninstall ruby-test-construct on Kali Linux
To uninstall only the ruby-test-construct package we can use the following command:
sudo apt-get remove ruby-test-constructUninstall ruby-test-construct And Its Dependencies
To uninstall ruby-test-construct and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove ruby-test-constructRemove ruby-test-construct Configurations and Data
To remove ruby-test-construct configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge ruby-test-constructRemove ruby-test-construct configuration, data, and all of its dependencies
We can use the following command to remove ruby-test-construct configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge ruby-test-constructDependencies
ruby-test-construct have the following dependencies:
References
Summary
In this tutorial we learn how to install ruby-test-construct package on Kali Linux using different package management tools: apt, apt-get and aptitude.