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

In this tutorial we learn how to install libconfig-model-openssh-perl on Ubuntu 18.04. libconfig-model-openssh-perl is configuration editor for OpenSsh

Introduction

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

What is libconfig-model-openssh-perl

libconfig-model-openssh-perl is:

Config::Model::OpenSsh enables cme command to edit OpenSSH configuration files, namely, /etc/ssh/sshd_config, /etc/ssh/ssh_config (for root) and ~/.ssh/config (for other users).

You can get extra functionality by installing some optional dependencies:

  • A graphical OpenSSH file editor with libconfig-model-tkui-perl
  • A curses OpenSSH file editor with libconfig-model-cursesui-perl

Comments of the files are preserved during edition. Comments can be edited with the graphical interface and saved back in the configuration files.

‘cme check ssh’ command can be used to validate the content of ssh* configuration files.

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

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

Install libconfig-model-openssh-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

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

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

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

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

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

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

Uninstall libconfig-model-openssh-perl And Its Dependencies

To uninstall libconfig-model-openssh-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-openssh-perl

Remove libconfig-model-openssh-perl Configurations and Data

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

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

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

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

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

References

Summary

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