How To Install libmodule-install-authorrequires-perl on Debian 12
Introduction
In this tutorial we learn how to install libmodule-install-authorrequires-perl
on Debian 12.
What is libmodule-install-authorrequires-perl
libmodule-install-authorrequires-perl is:
Modules often have optional requirements, for example dependencies that are useful for (optional) tests, but not required for the module to work properly.
Usually you want all developers of a project to have these optional modules installed. However, simply telling everyone or printing diagnostic messages if optional dependencies are missing often isn’t enough to make sure all authors have all optional modules installed.
Module::Install already has a way of detecting an author environment, so an easy way to achieve the above would be something like:
if ($Module::Install::AUTHOR) { requires ‘Some::Module’; requires ‘Another::Module’ => ‘0.42’; }
Unfortunately, that’ll also make the optional dependencies show up in the distributions “META.yml” file, which is obviously wrong, as they aren’t actually hard requirements.
Working that around requires a considerable amount of non-trivial Makefile.PL hackery, or simply using Module::Install::AuthorRequires’s “author_requires” command.
There are three methods to install libmodule-install-authorrequires-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 libmodule-install-authorrequires-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 libmodule-install-authorrequires-perl
using apt-get
by running the following command:
sudo apt-get -y install libmodule-install-authorrequires-perl
Install libmodule-install-authorrequires-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libmodule-install-authorrequires-perl
using apt
by running the following command:
sudo apt -y install libmodule-install-authorrequires-perl
Install libmodule-install-authorrequires-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 libmodule-install-authorrequires-perl
using aptitude
by running the following command:
sudo aptitude -y install libmodule-install-authorrequires-perl
How To Uninstall libmodule-install-authorrequires-perl on Debian 12
To uninstall only the libmodule-install-authorrequires-perl
package we can use the following command:
sudo apt-get remove libmodule-install-authorrequires-perl
Uninstall libmodule-install-authorrequires-perl And Its Dependencies
To uninstall libmodule-install-authorrequires-perl
and its dependencies that are no longer needed by Debian 12, we can use the command below:
sudo apt-get -y autoremove libmodule-install-authorrequires-perl
Remove libmodule-install-authorrequires-perl Configurations and Data
To remove libmodule-install-authorrequires-perl
configuration and data from Debian 12 we can use the following command:
sudo apt-get -y purge libmodule-install-authorrequires-perl
Remove libmodule-install-authorrequires-perl configuration, data, and all of its dependencies
We can use the following command to remove libmodule-install-authorrequires-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libmodule-install-authorrequires-perl
Dependencies
libmodule-install-authorrequires-perl have the following dependencies:
References
- libmodule-install-authorrequires-perl website
- libmodule-install-authorrequires-perl on packages.debian.org
Summary
In this tutorial we learn how to install libmodule-install-authorrequires-perl
package on Debian 12 using different package management tools: apt
, apt-get
and aptitude
.