How To Install libmoosex-configfromfile-perl on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libmoosex-configfromfile-perl
on Ubuntu 20.04.
What is libmoosex-configfromfile-perl
libmoosex-configfromfile-perl is:
MooseX::ConfigFromFile is an abstract Moose role that provides an alternate constructor for creating objects, using parameters passed in from a config file. The actual implementation of reading the configuration file is left to subroles.
There are three methods to install libmoosex-configfromfile-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 libmoosex-configfromfile-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 libmoosex-configfromfile-perl
using apt-get
by running the following command:
sudo apt-get -y install libmoosex-configfromfile-perl
Install libmoosex-configfromfile-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libmoosex-configfromfile-perl
using apt
by running the following command:
sudo apt -y install libmoosex-configfromfile-perl
Install libmoosex-configfromfile-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 libmoosex-configfromfile-perl
using aptitude
by running the following command:
sudo aptitude -y install libmoosex-configfromfile-perl
How To Uninstall libmoosex-configfromfile-perl on Ubuntu 20.04
To uninstall only the libmoosex-configfromfile-perl
package we can use the following command:
sudo apt-get remove libmoosex-configfromfile-perl
Uninstall libmoosex-configfromfile-perl And Its Dependencies
To uninstall libmoosex-configfromfile-perl
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libmoosex-configfromfile-perl
Remove libmoosex-configfromfile-perl Configurations and Data
To remove libmoosex-configfromfile-perl
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libmoosex-configfromfile-perl
Remove libmoosex-configfromfile-perl configuration, data, and all of its dependencies
We can use the following command to remove libmoosex-configfromfile-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libmoosex-configfromfile-perl
References
Summary
In this tutorial we learn how to install libmoosex-configfromfile-perl
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.