How To Install libcatalyst-model-dbic-schema-perl on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libcatalyst-model-dbic-schema-perl
on Ubuntu 20.04.
What is libcatalyst-model-dbic-schema-perl
libcatalyst-model-dbic-schema-perl is:
Catalyst::Model::DBIC::Schema is a Catalyst database model class for DBIx::Class::Schema-based Models. See the documentation for Catalyst::Helper::Model::DBIC::Schema for information on generating these Models via Helper scripts.
When a Catalyst app starts up, a thin Model layer is created as an interface to the DBIC Schema. It should be clearly noted that the model object returned by $c->model(‘FilmDB’) is NOT itself a DBIC schema or resultset object, but merely a wrapper proving methods to access the underlying schema.
In addition to this model class, a shortcut class is generated for each source in the schema, allowing easy and direct access to a resultset of the corresponding type. These generated classes are even thinner than the model class, providing no public methods but simply hooking into Catalyst’s model() accessor via the ACCEPT_CONTEXT mechanism.
Catalyst is an elegant Model-View-Controller web application framework written in Perl.
There are three methods to install libcatalyst-model-dbic-schema-perl
on Ubuntu 20.04. 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-dbic-schema-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-dbic-schema-perl
using apt-get
by running the following command:
sudo apt-get -y install libcatalyst-model-dbic-schema-perl
Install libcatalyst-model-dbic-schema-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libcatalyst-model-dbic-schema-perl
using apt
by running the following command:
sudo apt -y install libcatalyst-model-dbic-schema-perl
Install libcatalyst-model-dbic-schema-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 Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install libcatalyst-model-dbic-schema-perl
using aptitude
by running the following command:
sudo aptitude -y install libcatalyst-model-dbic-schema-perl
How To Uninstall libcatalyst-model-dbic-schema-perl on Ubuntu 20.04
To uninstall only the libcatalyst-model-dbic-schema-perl
package we can use the following command:
sudo apt-get remove libcatalyst-model-dbic-schema-perl
Uninstall libcatalyst-model-dbic-schema-perl And Its Dependencies
To uninstall libcatalyst-model-dbic-schema-perl
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libcatalyst-model-dbic-schema-perl
Remove libcatalyst-model-dbic-schema-perl Configurations and Data
To remove libcatalyst-model-dbic-schema-perl
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libcatalyst-model-dbic-schema-perl
Remove libcatalyst-model-dbic-schema-perl configuration, data, and all of its dependencies
We can use the following command to remove libcatalyst-model-dbic-schema-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libcatalyst-model-dbic-schema-perl
References
Summary
In this tutorial we learn how to install libcatalyst-model-dbic-schema-perl
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.