How To Install ruby-database-cleaner on Kali Linux
Introduction
In this tutorial we learn how to install ruby-database-cleaner on Kali Linux.
What is ruby-database-cleaner
ruby-database-cleaner is:
Strategies for cleaning databases. Can be used to ensure a clean state for testing.
Each strategy is a small amount of code but is code that is usually needed in any ruby app that is testing with a database.
ActiveRecord, DataMapper, Sequel, MongoMapper, Mongoid, CouchPotato, Ohm and Redis are supported.
There are three methods to install ruby-database-cleaner 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-database-cleaner Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install ruby-database-cleaner using apt-get by running the following command:
sudo apt-get -y install ruby-database-cleanerInstall ruby-database-cleaner Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install ruby-database-cleaner using apt by running the following command:
sudo apt -y install ruby-database-cleanerInstall ruby-database-cleaner 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-database-cleaner using aptitude by running the following command:
sudo aptitude -y install ruby-database-cleanerHow To Uninstall ruby-database-cleaner on Kali Linux
To uninstall only the ruby-database-cleaner package we can use the following command:
sudo apt-get remove ruby-database-cleanerUninstall ruby-database-cleaner And Its Dependencies
To uninstall ruby-database-cleaner and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove ruby-database-cleanerRemove ruby-database-cleaner Configurations and Data
To remove ruby-database-cleaner configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge ruby-database-cleanerRemove ruby-database-cleaner configuration, data, and all of its dependencies
We can use the following command to remove ruby-database-cleaner configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge ruby-database-cleanerDependencies
ruby-database-cleaner have the following dependencies:
References
Summary
In this tutorial we learn how to install ruby-database-cleaner package on Kali Linux using different package management tools: apt, apt-get and aptitude.