How To Install libperl5i-perl on Debian 9

In this tutorial we learn how to install libperl5i-perl on Debian 9. libperl5i-perl is pragma to fix as much of Perl 5 as possible

Introduction

In this tutorial we learn how to install libperl5i-perl on Debian 9.

What is libperl5i-perl

libperl5i-perl is:

perl5i is a Perl pragma that swiftly enables the features of a collection of modules and techniques used to fix Perl 5’s warts. It includes changing core functions, adding features and changing defaults, so it will likely not be 100% backwards compatible with standard Perl 5 syntax. However, this pragma tries to limit the damage by having a lexical effect.

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

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

sudo apt-get -y install libperl5i-perl

Install libperl5i-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libperl5i-perl

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

sudo aptitude -y install libperl5i-perl

How To Uninstall libperl5i-perl on Debian 9

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

sudo apt-get remove libperl5i-perl

Uninstall libperl5i-perl And Its Dependencies

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

sudo apt-get -y autoremove libperl5i-perl

Remove libperl5i-perl Configurations and Data

To remove libperl5i-perl configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge libperl5i-perl

Remove libperl5i-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libperl5i-perl

Dependencies

libperl5i-perl have the following dependencies:

References

Summary

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