How To Install libdbicx-sugar-perl on Debian 9

In this tutorial we learn how to install libdbicx-sugar-perl on Debian 9. libdbicx-sugar-perl is syntax sugar for DBIx

Introduction

In this tutorial we learn how to install libdbicx-sugar-perl on Debian 9.

What is libdbicx-sugar-perl

libdbicx-sugar-perl is:

DBICx::Sugar provides some syntax sugar for your DBIx::Class applications.

DBIx::Class is an SQL to OO mapper with an object API inspired by Class::DBI and a resultset API that allows abstract encapsulation of database operations.

There are three methods to install libdbicx-sugar-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 libdbicx-sugar-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 libdbicx-sugar-perl using apt-get by running the following command:

sudo apt-get -y install libdbicx-sugar-perl

Install libdbicx-sugar-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libdbicx-sugar-perl

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

sudo aptitude -y install libdbicx-sugar-perl

How To Uninstall libdbicx-sugar-perl on Debian 9

To uninstall only the libdbicx-sugar-perl package we can use the following command:

sudo apt-get remove libdbicx-sugar-perl

Uninstall libdbicx-sugar-perl And Its Dependencies

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

sudo apt-get -y autoremove libdbicx-sugar-perl

Remove libdbicx-sugar-perl Configurations and Data

To remove libdbicx-sugar-perl configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge libdbicx-sugar-perl

Remove libdbicx-sugar-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libdbicx-sugar-perl

Dependencies

libdbicx-sugar-perl have the following dependencies:

References

Summary

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