How To Install liblist-someutils-perl on Ubuntu 18.04

In this tutorial we learn how to install liblist-someutils-perl on Ubuntu 18.04. liblist-someutils-perl is module that provides the stuff missing in List

Introduction

In this tutorial we learn how to install liblist-someutils-perl on Ubuntu 18.04.

What is liblist-someutils-perl

liblist-someutils-perl is:

List::SomeUtils provides some trivial but commonly needed functionality on lists which is not going to go into List::Util.

All of the functions are implementable in only a couple of lines of Perl code. Using the functions from this module however should give slightly better performance as everything is implemented in C. The pure-Perl implementation of these functions only serves as a fallback in case the C portions of this module couldn’t be compiled on this machine.

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

sudo apt-get -y install liblist-someutils-perl

Install liblist-someutils-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install liblist-someutils-perl using apt by running the following command:

sudo apt -y install liblist-someutils-perl

Install liblist-someutils-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 liblist-someutils-perl using aptitude by running the following command:

sudo aptitude -y install liblist-someutils-perl

How To Uninstall liblist-someutils-perl on Ubuntu 18.04

To uninstall only the liblist-someutils-perl package we can use the following command:

sudo apt-get remove liblist-someutils-perl

Uninstall liblist-someutils-perl And Its Dependencies

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

sudo apt-get -y autoremove liblist-someutils-perl

Remove liblist-someutils-perl Configurations and Data

To remove liblist-someutils-perl configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge liblist-someutils-perl

Remove liblist-someutils-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge liblist-someutils-perl

References

Summary

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