How To Install libmodern-perl-perl on Debian 11
Introduction
In this tutorial we learn how to install libmodern-perl-perl
on Debian 11.
What is libmodern-perl-perl
libmodern-perl-perl is:
Modern Perl programs use several modules to enable additional features of Perl and of the CPAN. Instead of copying and pasting all of these ‘use’ lines, instead write only one:
use Modern::Perl;
This enables the strict and warnings pragmas, as well as all of the features available since Perl 5.10.
For enabling features of newer Perl releases, a year can be specified as an import tag, e.g.:
use Modern::Perl '2017';
enables 5.24 features. Cf. Modern::Perl(3pm) for details.
See http://www.modernperlbooks.com/mt/2009/01/toward-a-modernperl.html for more information, http://www.modernperlbooks.com/ for further discussion of Modern Perl and its implications, and http://onyxneon.com/books/modern_perl/index.html for a freely-downloadable Modern Perl tutorial.
There are three methods to install libmodern-perl-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 libmodern-perl-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 libmodern-perl-perl
using apt-get
by running the following command:
sudo apt-get -y install libmodern-perl-perl
Install libmodern-perl-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libmodern-perl-perl
using apt
by running the following command:
sudo apt -y install libmodern-perl-perl
Install libmodern-perl-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 libmodern-perl-perl
using aptitude
by running the following command:
sudo aptitude -y install libmodern-perl-perl
How To Uninstall libmodern-perl-perl on Debian 11
To uninstall only the libmodern-perl-perl
package we can use the following command:
sudo apt-get remove libmodern-perl-perl
Uninstall libmodern-perl-perl And Its Dependencies
To uninstall libmodern-perl-perl
and its dependencies that are no longer needed by Debian 11, we can use the command below:
sudo apt-get -y autoremove libmodern-perl-perl
Remove libmodern-perl-perl Configurations and Data
To remove libmodern-perl-perl
configuration and data from Debian 11 we can use the following command:
sudo apt-get -y purge libmodern-perl-perl
Remove libmodern-perl-perl configuration, data, and all of its dependencies
We can use the following command to remove libmodern-perl-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libmodern-perl-perl
Dependencies
libmodern-perl-perl have the following dependencies:
References
Summary
In this tutorial we learn how to install libmodern-perl-perl
package on Debian 11 using different package management tools: apt
, apt-get
and aptitude
.