How To Install librole-tiny-perl on Ubuntu 18.04
Introduction
In this tutorial we learn how to install librole-tiny-perl
on Ubuntu 18.04.
What is librole-tiny-perl
librole-tiny-perl is:
Role::Tiny is a Perl module to do minimalist role composition. Role composition can be thought of as much more clever and meaningful multiple inheritance.
The basics of this implementation of roles is:
- If a method is already defined on a class, that method will not be composed in from the role.
- If a method that the role “requires” to be implemented is not implemented, role application will fail loudly.
Unlike Class::C3, where the last class inherited from “wins,” role composition is the other way around, where first wins. In a more complete system (see Moose) roles are checked to see if they clash. The goal of this is to be much simpler, hence disallowing composition of multiple roles at once.
There are three methods to install librole-tiny-perl
on Ubuntu 18.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 librole-tiny-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 librole-tiny-perl
using apt-get
by running the following command:
sudo apt-get -y install librole-tiny-perl
Install librole-tiny-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install librole-tiny-perl
using apt
by running the following command:
sudo apt -y install librole-tiny-perl
Install librole-tiny-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 librole-tiny-perl
using aptitude
by running the following command:
sudo aptitude -y install librole-tiny-perl
How To Uninstall librole-tiny-perl on Ubuntu 18.04
To uninstall only the librole-tiny-perl
package we can use the following command:
sudo apt-get remove librole-tiny-perl
Uninstall librole-tiny-perl And Its Dependencies
To uninstall librole-tiny-perl
and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove librole-tiny-perl
Remove librole-tiny-perl Configurations and Data
To remove librole-tiny-perl
configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge librole-tiny-perl
Remove librole-tiny-perl configuration, data, and all of its dependencies
We can use the following command to remove librole-tiny-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge librole-tiny-perl
References
Summary
In this tutorial we learn how to install librole-tiny-perl
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.