How To Install ruby-valid on Kali Linux
Introduction
In this tutorial we learn how to install ruby-valid
on Kali Linux.
What is ruby-valid
ruby-valid is:
Validator is a simple ruby validation class. You don’t use it directly inside your classes like just about every other ruby validation class out there. This is implemented in this way so you don’t automatically pollute the namespace of the objects you want to validate.
This also solves the problem of validating forms very nicely. Frequently you will have a form that represents many different data objects in your system, and you can pre-validate everything before doing any saving.
There are three methods to install ruby-valid
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-valid 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-valid
using apt-get
by running the following command:
sudo apt-get -y install ruby-valid
Install ruby-valid Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install ruby-valid
using apt
by running the following command:
sudo apt -y install ruby-valid
Install ruby-valid 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-valid
using aptitude
by running the following command:
sudo aptitude -y install ruby-valid
How To Uninstall ruby-valid on Kali Linux
To uninstall only the ruby-valid
package we can use the following command:
sudo apt-get remove ruby-valid
Uninstall ruby-valid And Its Dependencies
To uninstall ruby-valid
and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove ruby-valid
Remove ruby-valid Configurations and Data
To remove ruby-valid
configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge ruby-valid
Remove ruby-valid configuration, data, and all of its dependencies
We can use the following command to remove ruby-valid
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge ruby-valid
Dependencies
ruby-valid have the following dependencies:
References
Summary
In this tutorial we learn how to install ruby-valid
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.