How To Install erlang-fs-listener on Ubuntu 18.04

In this tutorial we learn how to install erlang-fs-listener on Ubuntu 18.04. erlang-fs-listener is Erlang filesystem listener

Introduction

In this tutorial we learn how to install erlang-fs-listener on Ubuntu 18.04.

What is erlang-fs-listener

erlang-fs-listener is:

This library implements a filesystem listener for Erlang via inotify-tools. It allows one to subscribe to notifications and list events from the backend. An API allows for versatile use cases.

There are three methods to install erlang-fs-listener 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 erlang-fs-listener Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install erlang-fs-listener using apt-get by running the following command:

sudo apt-get -y install erlang-fs-listener

Install erlang-fs-listener Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install erlang-fs-listener using apt by running the following command:

sudo apt -y install erlang-fs-listener

Install erlang-fs-listener 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 erlang-fs-listener using aptitude by running the following command:

sudo aptitude -y install erlang-fs-listener

How To Uninstall erlang-fs-listener on Ubuntu 18.04

To uninstall only the erlang-fs-listener package we can use the following command:

sudo apt-get remove erlang-fs-listener

Uninstall erlang-fs-listener And Its Dependencies

To uninstall erlang-fs-listener and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove erlang-fs-listener

Remove erlang-fs-listener Configurations and Data

To remove erlang-fs-listener configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge erlang-fs-listener

Remove erlang-fs-listener configuration, data, and all of its dependencies

We can use the following command to remove erlang-fs-listener configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge erlang-fs-listener

References

Summary

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