How To Install libkeyword-simple-perl on Ubuntu 18.04

In this tutorial we learn how to install libkeyword-simple-perl on Ubuntu 18.04. libkeyword-simple-perl is Perl module to define new keywords in pure Perl

Introduction

In this tutorial we learn how to install libkeyword-simple-perl on Ubuntu 18.04.

What is libkeyword-simple-perl

libkeyword-simple-perl is:

Keyword::Simple allows one to implement new keywords in pure Perl. To do this, it is needed to write a module and call Keyword::Simple::define in the import method. Any keywords defined this way will be available in the lexical scope that’s currently being compiled.

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

sudo apt-get -y install libkeyword-simple-perl

Install libkeyword-simple-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libkeyword-simple-perl

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

sudo aptitude -y install libkeyword-simple-perl

How To Uninstall libkeyword-simple-perl on Ubuntu 18.04

To uninstall only the libkeyword-simple-perl package we can use the following command:

sudo apt-get remove libkeyword-simple-perl

Uninstall libkeyword-simple-perl And Its Dependencies

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

sudo apt-get -y autoremove libkeyword-simple-perl

Remove libkeyword-simple-perl Configurations and Data

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

sudo apt-get -y purge libkeyword-simple-perl

Remove libkeyword-simple-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libkeyword-simple-perl

References

Summary

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