How To Install libexception-class-perl on Debian 10

Learn how to install libexception-class-perl on Debian 10 with this tutorial. libexception-class-perl is module that allows you to declare real exception classes in Perl

Introduction

In this tutorial we learn how to install libexception-class-perl on Debian 10.

What is libexception-class-perl

libexception-class-perl is:

Exception::Class allows you to declare exceptions in your modules in a manner similar to how exceptions are declared in Java.

It features a simple interface allowing programmers to ‘declare’ exception classes at compile time. It also has a base exception class, Exception::Class::Base, that can be used for classes stored in files (aka modules ;) ) that are subclasses.

It is designed to make structured exception handling simpler and better by encouraging people to use hierarchies of exceptions in their applications.

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

sudo apt-get -y install libexception-class-perl

Install libexception-class-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libexception-class-perl

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

sudo aptitude -y install libexception-class-perl

How To Uninstall libexception-class-perl on Debian 10

To uninstall only the libexception-class-perl package we can use the following command:

sudo apt-get remove libexception-class-perl

Uninstall libexception-class-perl And Its Dependencies

To uninstall libexception-class-perl and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove libexception-class-perl

Remove libexception-class-perl Configurations and Data

To remove libexception-class-perl configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge libexception-class-perl

Remove libexception-class-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libexception-class-perl

Dependencies

libexception-class-perl have the following dependencies:

References

Summary

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