How To Install libclass-spiffy-perl on Debian 9
Introduction
In this tutorial we learn how to install libclass-spiffy-perl
on Debian 9.
What is libclass-spiffy-perl
libclass-spiffy-perl is:
Class::Spiffy is a framework and methodology for doing object oriented programming in Perl. Class::Spiffy combines the best parts of Exporter.pm, base.pm, mixin.pm and SUPER.pm into one magic foundation class. It attempts to fix all the nits and warts of traditional Perl OO, in a clean, straightforward and (perhaps someday) standard way.
Class::Spiffy borrows ideas from other OO languages like Python, Ruby, Java and Perl 6. It also adds a few tricks of its own.
If you take a look on CPAN, there are a ton of OO related modules. When starting a new project, you need to pick the set of modules that makes most sense, and then you need to use those modules in each of your classes. Class::Spiffy, on the other hand, has everything you’ll probably need in one module, and you only need to use it once in one of your classes. If you make Class::Spiffy the base class of the basest class in your project, Class::Spiffy will automatically pass all of its magic to all of your subclasses. You may eventually forget that you’re even using it!
The most striking difference between Class::Spiffy and other Perl object oriented base classes, is that it has the ability to export things. If you create a subclass of Class::Spiffy, all the things that Class::Spiffy exports will automatically be exported by your subclass, in addition to any more things that you want to export. And if someone creates a subclass of your subclass, all of those things will be exported automatically, and so on. Think of it as “Inherited Exportation”, and it uses the familiar Exporter.pm specification syntax.
There are three methods to install libclass-spiffy-perl
on Debian 9. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install libclass-spiffy-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 libclass-spiffy-perl
using apt-get
by running the following command:
sudo apt-get -y install libclass-spiffy-perl
Install libclass-spiffy-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libclass-spiffy-perl
using apt
by running the following command:
sudo apt -y install libclass-spiffy-perl
Install libclass-spiffy-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 libclass-spiffy-perl
using aptitude
by running the following command:
sudo aptitude -y install libclass-spiffy-perl
How To Uninstall libclass-spiffy-perl on Debian 9
To uninstall only the libclass-spiffy-perl
package we can use the following command:
sudo apt-get remove libclass-spiffy-perl
Uninstall libclass-spiffy-perl And Its Dependencies
To uninstall libclass-spiffy-perl
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove libclass-spiffy-perl
Remove libclass-spiffy-perl Configurations and Data
To remove libclass-spiffy-perl
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge libclass-spiffy-perl
Remove libclass-spiffy-perl configuration, data, and all of its dependencies
We can use the following command to remove libclass-spiffy-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libclass-spiffy-perl
Dependencies
libclass-spiffy-perl have the following dependencies:
References
Summary
In this tutorial we learn how to install libclass-spiffy-perl
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.