How To Install libcatalyst-model-dbi-perl on Kali Linux
Introduction
In this tutorial we learn how to install libcatalyst-model-dbi-perl on Kali Linux.
What is libcatalyst-model-dbi-perl
libcatalyst-model-dbi-perl is:
Catalyst::Model::DBI is the DBI model class for Catalyst.
There are two options for doing custom models with Catalyst. Either by using this model and any related modules as needed or by having a custom model decoupled from Catalyst and glued on using Catalyst::Model::Adaptor
Some general rules are as follows. If you do not wish to use DBIx::Connector or DBI directly and setup connections in your custom models or have glue models, then use this model. If you however need models that can be re-used outside of your application or simply wish to maintain connection code yourself outside of the Catalyst, then use Catalyst::Model::Adaptor which allows you to glue outside models into your Catalyst app.
Catalyst is an elegant Model-View-Controller web application framework written in Perl.
DBI is a Perl database interface.
There are three methods to install libcatalyst-model-dbi-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 libcatalyst-model-dbi-perl Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install libcatalyst-model-dbi-perl using apt-get by running the following command:
sudo apt-get -y install libcatalyst-model-dbi-perlInstall libcatalyst-model-dbi-perl Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install libcatalyst-model-dbi-perl using apt by running the following command:
sudo apt -y install libcatalyst-model-dbi-perlInstall libcatalyst-model-dbi-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 updateAfter updating apt database, We can install libcatalyst-model-dbi-perl using aptitude by running the following command:
sudo aptitude -y install libcatalyst-model-dbi-perlHow To Uninstall libcatalyst-model-dbi-perl on Kali Linux
To uninstall only the libcatalyst-model-dbi-perl package we can use the following command:
sudo apt-get remove libcatalyst-model-dbi-perlUninstall libcatalyst-model-dbi-perl And Its Dependencies
To uninstall libcatalyst-model-dbi-perl and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove libcatalyst-model-dbi-perlRemove libcatalyst-model-dbi-perl Configurations and Data
To remove libcatalyst-model-dbi-perl configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge libcatalyst-model-dbi-perlRemove libcatalyst-model-dbi-perl configuration, data, and all of its dependencies
We can use the following command to remove libcatalyst-model-dbi-perl configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libcatalyst-model-dbi-perlDependencies
libcatalyst-model-dbi-perl have the following dependencies:
References
Summary
In this tutorial we learn how to install libcatalyst-model-dbi-perl package on Kali Linux using different package management tools: apt, apt-get and aptitude.