How To Install libmoosex-attributeshortcuts-perl on Ubuntu 18.04
Introduction
In this tutorial we learn how to install libmoosex-attributeshortcuts-perl
on Ubuntu 18.04.
What is libmoosex-attributeshortcuts-perl
libmoosex-attributeshortcuts-perl is:
Ever found yourself repeatedly specifying writers and builders, because there’s no good shortcut to specifying them? Sometimes you want an attribute to have a read-only public interface, but a private writer. And wouldn’t it be easier to just say “builder => 1” and have the attribute construct the canonical “build$name” builder name for you?
MooseX::AttributeShortcuts causes an attribute trait to be applied to all attributes defined to the using class. This trait extends the attribute option processing to handle the above variations.
There are three methods to install libmoosex-attributeshortcuts-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 libmoosex-attributeshortcuts-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-attributeshortcuts-perl
using apt-get
by running the following command:
sudo apt-get -y install libmoosex-attributeshortcuts-perl
Install libmoosex-attributeshortcuts-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libmoosex-attributeshortcuts-perl
using apt
by running the following command:
sudo apt -y install libmoosex-attributeshortcuts-perl
Install libmoosex-attributeshortcuts-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-attributeshortcuts-perl
using aptitude
by running the following command:
sudo aptitude -y install libmoosex-attributeshortcuts-perl
How To Uninstall libmoosex-attributeshortcuts-perl on Ubuntu 18.04
To uninstall only the libmoosex-attributeshortcuts-perl
package we can use the following command:
sudo apt-get remove libmoosex-attributeshortcuts-perl
Uninstall libmoosex-attributeshortcuts-perl And Its Dependencies
To uninstall libmoosex-attributeshortcuts-perl
and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove libmoosex-attributeshortcuts-perl
Remove libmoosex-attributeshortcuts-perl Configurations and Data
To remove libmoosex-attributeshortcuts-perl
configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge libmoosex-attributeshortcuts-perl
Remove libmoosex-attributeshortcuts-perl configuration, data, and all of its dependencies
We can use the following command to remove libmoosex-attributeshortcuts-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libmoosex-attributeshortcuts-perl
References
Summary
In this tutorial we learn how to install libmoosex-attributeshortcuts-perl
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.