How To Install libtry-tiny-smartcatch-perl on Debian 10

Learn how to install libtry-tiny-smartcatch-perl on Debian 10 with this tutorial. libtry-tiny-smartcatch-perl is lightweight Perl module for powerful exceptions handling

Introduction

In this tutorial we learn how to install libtry-tiny-smartcatch-perl on Debian 10.

What is libtry-tiny-smartcatch-perl

libtry-tiny-smartcatch-perl is:

Try::Tiny::SmartCatch’s goals are mostly the same as Try::Tiny module, but there are few changes to it’s specification. Main difference is possibility to catch just some kinds of exceptions in place of catching everything. Another one is slightly changed syntax.

When raised exception is an object, Try::Tiny::SmartCatch will test for exception type (using UNIVERSAL::isa). When raised exception is just a text message (like “die (‘message’)”), there can be specified part of message to test for.

There are also explicit sub blocks. In opposite to Try::Tiny, every block in Try::Tiny::SmartCatch’s “try”, “catch_when”, “catch_default”, “then” and “finally” must have explicit subroutines specified.

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

sudo apt-get -y install libtry-tiny-smartcatch-perl

Install libtry-tiny-smartcatch-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libtry-tiny-smartcatch-perl using apt by running the following command:

sudo apt -y install libtry-tiny-smartcatch-perl

Install libtry-tiny-smartcatch-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 libtry-tiny-smartcatch-perl using aptitude by running the following command:

sudo aptitude -y install libtry-tiny-smartcatch-perl

How To Uninstall libtry-tiny-smartcatch-perl on Debian 10

To uninstall only the libtry-tiny-smartcatch-perl package we can use the following command:

sudo apt-get remove libtry-tiny-smartcatch-perl

Uninstall libtry-tiny-smartcatch-perl And Its Dependencies

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

sudo apt-get -y autoremove libtry-tiny-smartcatch-perl

Remove libtry-tiny-smartcatch-perl Configurations and Data

To remove libtry-tiny-smartcatch-perl configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge libtry-tiny-smartcatch-perl

Remove libtry-tiny-smartcatch-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libtry-tiny-smartcatch-perl

Dependencies

libtry-tiny-smartcatch-perl have the following dependencies:

References

Summary

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