How To Install libcommon-sense-perl on Ubuntu 18.04

In this tutorial we learn how to install libcommon-sense-perl on Ubuntu 18.04. libcommon-sense-perl is module that implements some sane defaults for Perl programs

Introduction

In this tutorial we learn how to install libcommon-sense-perl on Ubuntu 18.04.

What is libcommon-sense-perl

libcommon-sense-perl is:

common::sense implements some sane defaults for Perl programs, as defined by two typical (or not so typical - use your common sense) specimens of Perl coders.

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

sudo apt-get -y install libcommon-sense-perl

Install libcommon-sense-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libcommon-sense-perl

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

sudo aptitude -y install libcommon-sense-perl

How To Uninstall libcommon-sense-perl on Ubuntu 18.04

To uninstall only the libcommon-sense-perl package we can use the following command:

sudo apt-get remove libcommon-sense-perl

Uninstall libcommon-sense-perl And Its Dependencies

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

sudo apt-get -y autoremove libcommon-sense-perl

Remove libcommon-sense-perl Configurations and Data

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

sudo apt-get -y purge libcommon-sense-perl

Remove libcommon-sense-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libcommon-sense-perl

References

Summary

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