How To Install libdbix-class-perl on Debian 10
Introduction
In this tutorial we learn how to install libdbix-class-perl
on Debian 10.
What is libdbix-class-perl
libdbix-class-perl is:
DBIx::Class is an SQL to OO mapper with an object API inspired by Class::DBI (and a compatibility layer as a springboard for porting) and a resultset API that allows abstract encapsulation of database operations. It aims to make representing queries in your code as perl-ish as possible while still providing access to as many of the capabilities of the database as possible, including retrieving related records from multiple tables in a single query, JOIN, LEFT JOIN, COUNT, DISTINCT, GROUP BY and HAVING support.
DBIx::Class can handle multi-column primary and foreign keys, complex queries and database-level paging, and does its best to only query the database in order to return something you’ve directly asked for. If a resultset is used as an iterator it only fetches rows off the statement handle as requested in order to minimise memory usage. It has auto-increment support for SQLite, MySQL, PostgreSQL, Oracle, SQL Server and DB2 and is known to be used in production on at least the first four, and is fork- and thread-safe out of the box (although your DBD may not be).
There are three methods to install libdbix-class-perl
on Debian 10. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install libdbix-class-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 libdbix-class-perl
using apt-get
by running the following command:
sudo apt-get -y install libdbix-class-perl
Install libdbix-class-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libdbix-class-perl
using apt
by running the following command:
sudo apt -y install libdbix-class-perl
Install libdbix-class-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 libdbix-class-perl
using aptitude
by running the following command:
sudo aptitude -y install libdbix-class-perl
How To Uninstall libdbix-class-perl on Debian 10
To uninstall only the libdbix-class-perl
package we can use the following command:
sudo apt-get remove libdbix-class-perl
Uninstall libdbix-class-perl And Its Dependencies
To uninstall libdbix-class-perl
and its dependencies that are no longer needed by Debian 10, we can use the command below:
sudo apt-get -y autoremove libdbix-class-perl
Remove libdbix-class-perl Configurations and Data
To remove libdbix-class-perl
configuration and data from Debian 10 we can use the following command:
sudo apt-get -y purge libdbix-class-perl
Remove libdbix-class-perl configuration, data, and all of its dependencies
We can use the following command to remove libdbix-class-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libdbix-class-perl
Dependencies
libdbix-class-perl have the following dependencies:
- perl
- libclass-accessor-grouped-perl
- libclass-c3-componentised-perl
- libclass-inspector-perl
- libconfig-any-perl
- libcontext-preserve-perl
- libdata-dumper-concise-perl
- libdata-page-perl
- libdbi-perl
- libdevel-globaldestruction-perl
- libhash-merge-perl
- libmodule-find-perl
- libmoo-perl
- libnamespace-clean-perl
- libpath-class-perl
- libscope-guard-perl
- libsql-abstract-perl
- libsub-name-perl
- libtry-tiny-perl
References
Summary
In this tutorial we learn how to install libdbix-class-perl
package on Debian 10 using different package management tools: apt
, apt-get
and aptitude
.