How To Install libtest-abortable-perl on Ubuntu 18.04

In this tutorial we learn how to install libtest-abortable-perl on Ubuntu 18.04. libtest-abortable-perl is module to handle subtest failures with exceptions

Introduction

In this tutorial we learn how to install libtest-abortable-perl on Ubuntu 18.04.

What is libtest-abortable-perl

libtest-abortable-perl is:

Test::Abortable provides a simple system for catching some exceptions and turning them into test events. It provides a means to communicate, via exceptions, that the running subtest should be aborted, possibly with some test output, and that the program should then continue.

Test::Abortable exports a subtest() routine that behaves like the one in Test::More but will handle and recover from abortable exceptions. It also exports testeval(), which behaves like a block eval that only catches abortable exceptions.

There are three methods to install libtest-abortable-perl on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libtest-abortable-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 libtest-abortable-perl using apt-get by running the following command:

sudo apt-get -y install libtest-abortable-perl

Install libtest-abortable-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libtest-abortable-perl

Install libtest-abortable-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 Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libtest-abortable-perl using aptitude by running the following command:

sudo aptitude -y install libtest-abortable-perl

How To Uninstall libtest-abortable-perl on Ubuntu 18.04

To uninstall only the libtest-abortable-perl package we can use the following command:

sudo apt-get remove libtest-abortable-perl

Uninstall libtest-abortable-perl And Its Dependencies

To uninstall libtest-abortable-perl and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove libtest-abortable-perl

Remove libtest-abortable-perl Configurations and Data

To remove libtest-abortable-perl configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libtest-abortable-perl

Remove libtest-abortable-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libtest-abortable-perl

References

Summary

In this tutorial we learn how to install libtest-abortable-perl package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.