How To Install libgoto-file-perl on Debian 12

Learn how to install libgoto-file-perl on Debian 12 with this tutorial. libgoto-file-perl is Perl module that allows swapping the currently compiling file for a new one

Introduction

In this tutorial we learn how to install libgoto-file-perl on Debian 12.

What is libgoto-file-perl

libgoto-file-perl is:

goto::file allows Test2::Harness to swap out the main script for the new file without adding a stack frame.

It is rare, but there are times where you want to swap out the currently compiling file for a different one. This module does that. From the point you ‘use’ the module perl will be parsing the new file instead of the original.

This module was created specifically for Test2::Harness which can preload modules and fork to run each test. The problem was that using ‘do’ to execute the test files post-fork was resuling in extra frames in the stack trace… in other words there are a lot of tests that assume the test file is the bottom of the stack. This happens all the time, specially if stack traces need to be verified.

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

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

sudo apt-get -y install libgoto-file-perl

Install libgoto-file-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libgoto-file-perl

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

sudo aptitude -y install libgoto-file-perl

How To Uninstall libgoto-file-perl on Debian 12

To uninstall only the libgoto-file-perl package we can use the following command:

sudo apt-get remove libgoto-file-perl

Uninstall libgoto-file-perl And Its Dependencies

To uninstall libgoto-file-perl and its dependencies that are no longer needed by Debian 12, we can use the command below:

sudo apt-get -y autoremove libgoto-file-perl

Remove libgoto-file-perl Configurations and Data

To remove libgoto-file-perl configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge libgoto-file-perl

Remove libgoto-file-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libgoto-file-perl

Dependencies

libgoto-file-perl have the following dependencies:

References

Summary

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