How To Install libconfig-model-itself-perl on Ubuntu 18.04

In this tutorial we learn how to install libconfig-model-itself-perl on Ubuntu 18.04. libconfig-model-itself-perl is graphical model editor for Config

Introduction

In this tutorial we learn how to install libconfig-model-itself-perl on Ubuntu 18.04.

What is libconfig-model-itself-perl

libconfig-model-itself-perl is:

Config::Model::Itself module is a plugin for cme which provides a Perl/Tk graphical interface to edit configuration models that are be used by Config::Model.

Config::Model::Itself also provides a model for Config::Model (hence the Itself name, you can also think of it as a meta-model). The model editor will use this meta-model to construct the graphical interface so you can edit the configuration model for your application. [ Config::Model::Itself is the “eat your own dog food” principle applied to Config::Model ;-) ]

Let’s step back a little to explain. Any configuration data is, in essence, structured data. This data could be stored, for instance, in an XML file. A configuration model is a way to describe the structure and relation of all items of a configuration data set.

This configuration model is also expressed as structured data. This structure data is structured and follows a set of rules which are described for humans in Config::Model.

The structure and rules documented in Config::Model are also expressed in a model in the files provided with Config::Model::Itself.

Hence the possibity to verify, modify configuration data provided by Config::Model can also be applied on configuration models.

The model editor program launched with “cme meta edit”

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

sudo apt-get -y install libconfig-model-itself-perl

Install libconfig-model-itself-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libconfig-model-itself-perl using apt by running the following command:

sudo apt -y install libconfig-model-itself-perl

Install libconfig-model-itself-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 libconfig-model-itself-perl using aptitude by running the following command:

sudo aptitude -y install libconfig-model-itself-perl

How To Uninstall libconfig-model-itself-perl on Ubuntu 18.04

To uninstall only the libconfig-model-itself-perl package we can use the following command:

sudo apt-get remove libconfig-model-itself-perl

Uninstall libconfig-model-itself-perl And Its Dependencies

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

sudo apt-get -y autoremove libconfig-model-itself-perl

Remove libconfig-model-itself-perl Configurations and Data

To remove libconfig-model-itself-perl configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libconfig-model-itself-perl

Remove libconfig-model-itself-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libconfig-model-itself-perl

References

Summary

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