How To Install libscalar-defer-perl on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libscalar-defer-perl
on Ubuntu 20.04.
What is libscalar-defer-perl
libscalar-defer-perl is:
Scalar::Defer is a Perl module that exports two functions, defer and lazy, which can be used to construct values that are evaluated as needed. It also provides a function to force immediate evaluation of a deferred value.
There are three methods to install libscalar-defer-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 libscalar-defer-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 libscalar-defer-perl
using apt-get
by running the following command:
sudo apt-get -y install libscalar-defer-perl
Install libscalar-defer-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libscalar-defer-perl
using apt
by running the following command:
sudo apt -y install libscalar-defer-perl
Install libscalar-defer-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 libscalar-defer-perl
using aptitude
by running the following command:
sudo aptitude -y install libscalar-defer-perl
How To Uninstall libscalar-defer-perl on Ubuntu 20.04
To uninstall only the libscalar-defer-perl
package we can use the following command:
sudo apt-get remove libscalar-defer-perl
Uninstall libscalar-defer-perl And Its Dependencies
To uninstall libscalar-defer-perl
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libscalar-defer-perl
Remove libscalar-defer-perl Configurations and Data
To remove libscalar-defer-perl
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libscalar-defer-perl
Remove libscalar-defer-perl configuration, data, and all of its dependencies
We can use the following command to remove libscalar-defer-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libscalar-defer-perl
References
Summary
In this tutorial we learn how to install libscalar-defer-perl
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.