How To Install libtry-tiny-perl on Debian 11

In this tutorial we learn how to install libtry-tiny-perl on Debian 11. libtry-tiny-perl is module providing minimalistic try/catch

Introduction

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

What is libtry-tiny-perl

libtry-tiny-perl is:

Try::Tiny is a Perl module that provides bare bones try/catch statements. It is designed to eliminate common mistakes with eval blocks, and NOTHING else.

The main focus of this module is to provide simple and reliable error handling for those having a hard time installing TryCatch, but who still want to write correct eval blocks without 5 lines of boilerplate each time.

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

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

Install libtry-tiny-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libtry-tiny-perl

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

sudo aptitude -y install libtry-tiny-perl

How To Uninstall libtry-tiny-perl on Debian 11

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

sudo apt-get remove libtry-tiny-perl

Uninstall libtry-tiny-perl And Its Dependencies

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

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

Remove libtry-tiny-perl Configurations and Data

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

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

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

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

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

Dependencies

libtry-tiny-perl have the following dependencies:

References

Summary

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