How To Install libscalar-util-numeric-perl on Ubuntu 18.04

In this tutorial we learn how to install libscalar-util-numeric-perl on Ubuntu 18.04. libscalar-util-numeric-perl is Perl module containing numeric tests for Perl datatypes

Introduction

In this tutorial we learn how to install libscalar-util-numeric-perl on Ubuntu 18.04.

What is libscalar-util-numeric-perl

libscalar-util-numeric-perl is:

Scalar::Util::Numeric exports a number of wrappers around perl’s builtin looks_like_number function, which returns the numeric type of its argument, or 0 if it isn’t numeric.

There are three methods to install libscalar-util-numeric-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 libscalar-util-numeric-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-util-numeric-perl using apt-get by running the following command:

sudo apt-get -y install libscalar-util-numeric-perl

Install libscalar-util-numeric-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libscalar-util-numeric-perl using apt by running the following command:

sudo apt -y install libscalar-util-numeric-perl

Install libscalar-util-numeric-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-util-numeric-perl using aptitude by running the following command:

sudo aptitude -y install libscalar-util-numeric-perl

How To Uninstall libscalar-util-numeric-perl on Ubuntu 18.04

To uninstall only the libscalar-util-numeric-perl package we can use the following command:

sudo apt-get remove libscalar-util-numeric-perl

Uninstall libscalar-util-numeric-perl And Its Dependencies

To uninstall libscalar-util-numeric-perl and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove libscalar-util-numeric-perl

Remove libscalar-util-numeric-perl Configurations and Data

To remove libscalar-util-numeric-perl configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libscalar-util-numeric-perl

Remove libscalar-util-numeric-perl configuration, data, and all of its dependencies

We can use the following command to remove libscalar-util-numeric-perl configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libscalar-util-numeric-perl

References

Summary

In this tutorial we learn how to install libscalar-util-numeric-perl package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.