How To Install libcatalyst-model-adaptor-perl on Debian 9

In this tutorial we learn how to install libcatalyst-model-adaptor-perl on Debian 9. libcatalyst-model-adaptor-perl is glue for Catalyst model modules

Introduction

In this tutorial we learn how to install libcatalyst-model-adaptor-perl on Debian 9.

What is libcatalyst-model-adaptor-perl

libcatalyst-model-adaptor-perl is:

The idea is that there’s no need for a Catalyst model to be anything other than a line or two of glue. Using this module ensures that Model classes are separate from the rest of the application and therefore are well-abstracted, reusable, and easily testable.

Right now there are too many modules on CPAN that are Catalyst-specific. Most of the models would be better written as a class that handles most of the functionality with just a bit of glue to make it work nicely with Catalyst. Catalyst::Model::Adaptor aims to make integrating that class with Catalyst trivial, so there’s no extra work involved in makint the model generic.

Catalyst is an elegant Model-View-Controller web application framework written in Perl.

There are three methods to install libcatalyst-model-adaptor-perl on Debian 9. 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-adaptor-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 libcatalyst-model-adaptor-perl using apt-get by running the following command:

sudo apt-get -y install libcatalyst-model-adaptor-perl

Install libcatalyst-model-adaptor-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libcatalyst-model-adaptor-perl using apt by running the following command:

sudo apt -y install libcatalyst-model-adaptor-perl

Install libcatalyst-model-adaptor-perl 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 libcatalyst-model-adaptor-perl using aptitude by running the following command:

sudo aptitude -y install libcatalyst-model-adaptor-perl

How To Uninstall libcatalyst-model-adaptor-perl on Debian 9

To uninstall only the libcatalyst-model-adaptor-perl package we can use the following command:

sudo apt-get remove libcatalyst-model-adaptor-perl

Uninstall libcatalyst-model-adaptor-perl And Its Dependencies

To uninstall libcatalyst-model-adaptor-perl and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove libcatalyst-model-adaptor-perl

Remove libcatalyst-model-adaptor-perl Configurations and Data

To remove libcatalyst-model-adaptor-perl configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge libcatalyst-model-adaptor-perl

Remove libcatalyst-model-adaptor-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libcatalyst-model-adaptor-perl

Dependencies

libcatalyst-model-adaptor-perl have the following dependencies:

References

Summary

In this tutorial we learn how to install libcatalyst-model-adaptor-perl package on Debian 9 using different package management tools: apt, apt-get and aptitude.