How To Install cvm-mysql on Kali Linux

In this tutorial we learn how to install cvm-mysql on Kali Linux. cvm-mysql is Credential Validation Modules (MySQL)

Introduction

In this tutorial we learn how to install cvm-mysql on Kali Linux.

What is cvm-mysql

cvm-mysql is:

CVM is a framework for validating a set of credentials against a database using a filter program. The modules act as a filter, taking a set of credentials as input and writing a set of facts as output if those credentials are valid. Optional input is given to the module through environment variables.

Some of the ideas for CVM came from experience with PAM (pluggable authentication modules), the checkpassword interface used by qmail-pop3d, and the “authmod” interface used by Courier IMAP and POP3. This framework places fewer restrictions on the invoking client than checkpassword does, and is much simpler to implement on both sides than PAM and the authmod framework.

This package includes cvm binaries to interact with MySQL databases.

There are three methods to install cvm-mysql 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 cvm-mysql Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install cvm-mysql using apt-get by running the following command:

sudo apt-get -y install cvm-mysql

Install cvm-mysql Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install cvm-mysql using apt by running the following command:

sudo apt -y install cvm-mysql

Install cvm-mysql 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 cvm-mysql using aptitude by running the following command:

sudo aptitude -y install cvm-mysql

How To Uninstall cvm-mysql on Kali Linux

To uninstall only the cvm-mysql package we can use the following command:

sudo apt-get remove cvm-mysql

Uninstall cvm-mysql And Its Dependencies

To uninstall cvm-mysql and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove cvm-mysql

Remove cvm-mysql Configurations and Data

To remove cvm-mysql configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge cvm-mysql

Remove cvm-mysql configuration, data, and all of its dependencies

We can use the following command to remove cvm-mysql configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge cvm-mysql

Dependencies

cvm-mysql have the following dependencies:

References

Summary

In this tutorial we learn how to install cvm-mysql package on Kali Linux using different package management tools: apt, apt-get and aptitude.