How To Install libcli-framework-perl on Ubuntu 18.04

In this tutorial we learn how to install libcli-framework-perl on Ubuntu 18.04. libcli-framework-perl is standardized, flexible, testable CLI applications framework for Perl

Introduction

In this tutorial we learn how to install libcli-framework-perl on Ubuntu 18.04.

What is libcli-framework-perl

libcli-framework-perl is:

CLI::Framework (“CLIF”) provides a framework and conceptual pattern for building full-featured command line applications. It intends to make this process simple and consistent. It assumes the responsibility of implementing details that are common to all command-line applications, making it possible for new applications adhering to well-defined conventions to be built without the need to repeatedly write the same command-line interface code.

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

sudo apt-get -y install libcli-framework-perl

Install libcli-framework-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libcli-framework-perl

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

sudo aptitude -y install libcli-framework-perl

How To Uninstall libcli-framework-perl on Ubuntu 18.04

To uninstall only the libcli-framework-perl package we can use the following command:

sudo apt-get remove libcli-framework-perl

Uninstall libcli-framework-perl And Its Dependencies

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

sudo apt-get -y autoremove libcli-framework-perl

Remove libcli-framework-perl Configurations and Data

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

sudo apt-get -y purge libcli-framework-perl

Remove libcli-framework-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libcli-framework-perl

References

Summary

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