How To Install libdbd-mysql-perl on Kali Linux

In this tutorial we learn how to install libdbd-mysql-perl on Kali Linux. libdbd-mysql-perl is Perl5 database interface to the MariaDB/MySQL database

Introduction

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

What is libdbd-mysql-perl

libdbd-mysql-perl is:

DBD::mysql is the Perl5 Database Interface driver for the MariaDB/MySQL database. In other words: DBD::mysql is an interface between the Perl programming language and the MySQL programming API that comes with the MariaDB/MySQL relational database management system. Most functions provided by this programming API are supported. Some rarely used functions are missing, mainly because no one ever requested them. However supported features include: compression of data between server and client; timeouts; SSL; prepared statement support; server administration such as creating and dropping databases and restarting the server; auto-reconnection; utf8; bind type guessing; bind comment placeholders; automated insert ids; transactions; multiple result sets and multithreading.

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

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

sudo apt-get update

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

sudo apt-get -y install libdbd-mysql-perl

Install libdbd-mysql-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libdbd-mysql-perl

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

sudo aptitude -y install libdbd-mysql-perl

How To Uninstall libdbd-mysql-perl on Kali Linux

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

sudo apt-get remove libdbd-mysql-perl

Uninstall libdbd-mysql-perl And Its Dependencies

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

sudo apt-get -y autoremove libdbd-mysql-perl

Remove libdbd-mysql-perl Configurations and Data

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

sudo apt-get -y purge libdbd-mysql-perl

Remove libdbd-mysql-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libdbd-mysql-perl

Dependencies

libdbd-mysql-perl have the following dependencies:

References

Summary

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