How To Install ruby-valid-email on Debian 12

Learn how to install ruby-valid-email on Debian 12 with this tutorial. ruby-valid-email is ActiveModel Validation for email

Introduction

In this tutorial we learn how to install ruby-valid-email on Debian 12.

What is ruby-valid-email

ruby-valid-email is:

This library validates email for application use (registering a new account for example).

There are three methods to install ruby-valid-email on Debian 12. 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-email 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-email using apt-get by running the following command:

sudo apt-get -y install ruby-valid-email

Install ruby-valid-email Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install ruby-valid-email using apt by running the following command:

sudo apt -y install ruby-valid-email

Install ruby-valid-email Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install ruby-valid-email using aptitude by running the following command:

sudo aptitude -y install ruby-valid-email

How To Uninstall ruby-valid-email on Debian 12

To uninstall only the ruby-valid-email package we can use the following command:

sudo apt-get remove ruby-valid-email

Uninstall ruby-valid-email And Its Dependencies

To uninstall ruby-valid-email and its dependencies that are no longer needed by Debian 12, we can use the command below:

sudo apt-get -y autoremove ruby-valid-email

Remove ruby-valid-email Configurations and Data

To remove ruby-valid-email configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge ruby-valid-email

Remove ruby-valid-email configuration, data, and all of its dependencies

We can use the following command to remove ruby-valid-email configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge ruby-valid-email

Dependencies

ruby-valid-email have the following dependencies:

References

Summary

In this tutorial we learn how to install ruby-valid-email package on Debian 12 using different package management tools: apt, apt-get and aptitude.