How To Install librecommended-perl on Ubuntu 20.04
Introduction
In this tutorial we learn how to install librecommended-perl
on Ubuntu 20.04.
What is librecommended-perl
librecommended-perl is:
recommended gathers a list of recommended modules and versions and provides means to check if they are available. It is a thin veneer around Module::Runtime.
There are two major benefits over using Module::Runtime directly:
- Self-documents recommended modules together with versions at the top of your code, while still loading them on demand elsewhere.
- Dies if a recommended module exists but fails to compile, but doesn’t die if the module is missing or the version is insufficient. This is not something that Module::Runtime offers in a single subroutine.
There are three methods to install librecommended-perl
on Ubuntu 20.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 librecommended-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 librecommended-perl
using apt-get
by running the following command:
sudo apt-get -y install librecommended-perl
Install librecommended-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install librecommended-perl
using apt
by running the following command:
sudo apt -y install librecommended-perl
Install librecommended-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 librecommended-perl
using aptitude
by running the following command:
sudo aptitude -y install librecommended-perl
How To Uninstall librecommended-perl on Ubuntu 20.04
To uninstall only the librecommended-perl
package we can use the following command:
sudo apt-get remove librecommended-perl
Uninstall librecommended-perl And Its Dependencies
To uninstall librecommended-perl
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove librecommended-perl
Remove librecommended-perl Configurations and Data
To remove librecommended-perl
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge librecommended-perl
Remove librecommended-perl configuration, data, and all of its dependencies
We can use the following command to remove librecommended-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge librecommended-perl
References
Summary
In this tutorial we learn how to install librecommended-perl
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.