How To Install libconfig-model-perl on Ubuntu 18.04
Introduction
In this tutorial we learn how to install libconfig-model-perl
on Ubuntu 18.04.
What is libconfig-model-perl
libconfig-model-perl is:
Config::Model is a Perl framework that enables project developers to provide an interactive configuration system for their software. It supports various frontend interfaces (graphical, curses-based or plain terminal) to users. It handles configuration files semantically rather than syntactically, meaning that developers can specify the structure and constraints of the data along with a mechanism to read and write the files.
Using the structure and constraint information, Config::Model will generate interactive configuration editors that include help and data validation. It is equally simple to use graphical (via Tk) interfaces as well as curses- and ReadLine-based terminal interfaces.
Config::Model also provides a facility to help configuration data upgrade that can be triggered during package upgrades.
Config::Model provides configuration model and editor for:
- popularity-contest
- fstab (/etc/fstab)
- multistrap
Other configuration editors are available with other libconfig-model-*-perl packages.
Depending on which suggested or recommended modules are installed, Config::Model provides several user interfaces:
- shell-like interface (with any of lib-term-readlin-*-perl)
- virtual file system where each config parameter is mapped to a file (with fuse package)
- graphical user interface (with libconfig-model-tkui-perl)
There are three methods to install libconfig-model-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-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-perl
using apt-get
by running the following command:
sudo apt-get -y install libconfig-model-perl
Install libconfig-model-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libconfig-model-perl
using apt
by running the following command:
sudo apt -y install libconfig-model-perl
Install libconfig-model-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-perl
using aptitude
by running the following command:
sudo aptitude -y install libconfig-model-perl
How To Uninstall libconfig-model-perl on Ubuntu 18.04
To uninstall only the libconfig-model-perl
package we can use the following command:
sudo apt-get remove libconfig-model-perl
Uninstall libconfig-model-perl And Its Dependencies
To uninstall libconfig-model-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-perl
Remove libconfig-model-perl Configurations and Data
To remove libconfig-model-perl
configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge libconfig-model-perl
Remove libconfig-model-perl configuration, data, and all of its dependencies
We can use the following command to remove libconfig-model-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libconfig-model-perl
References
Summary
In this tutorial we learn how to install libconfig-model-perl
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.