How To Install libmessage-passing-zeromq-perl on Ubuntu 18.04

In this tutorial we learn how to install libmessage-passing-zeromq-perl on Ubuntu 18.04. libmessage-passing-zeromq-perl is input and output messages to ZeroMQ

Introduction

In this tutorial we learn how to install libmessage-passing-zeromq-perl on Ubuntu 18.04.

What is libmessage-passing-zeromq-perl

libmessage-passing-zeromq-perl is:

Message::Passing::ZeroMQ is a ZeroMQ transport for Message::Passing.

Designed for use as a log transport and aggregation mechanism for perl applications, allowing you to aggregate structured and non-structured log messages across the network in a non-blocking manner.

Clients (i.e. users of the Message::Passing::Output::ZeroMQ class) connect to a server (i.e. a user of the Message::Passing::Input::ZeroMQ class) via ZeroMQ’s pub/sub sockets. These are setup to be lossy and non-blocking, meaning that if the log-receiver process is down or slow, then the application will queue a small (and configurable) amount of logs on its side, and after that log messages will be dropped.

Whilst throwing away log messages isn’t a good thing to do, or something that you want to happen regularly, in many (especially web application) contexts, network logging being a single point of failure is not acceptable from a reliability and graceful degradation standpoint.

The application grinding to a halt as a non-essential centralised resource is unavailable (e.g. the log aggregation server) is significantly less acceptable than the loss of non-essential logging data.

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

sudo apt-get -y install libmessage-passing-zeromq-perl

Install libmessage-passing-zeromq-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libmessage-passing-zeromq-perl using apt by running the following command:

sudo apt -y install libmessage-passing-zeromq-perl

Install libmessage-passing-zeromq-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 libmessage-passing-zeromq-perl using aptitude by running the following command:

sudo aptitude -y install libmessage-passing-zeromq-perl

How To Uninstall libmessage-passing-zeromq-perl on Ubuntu 18.04

To uninstall only the libmessage-passing-zeromq-perl package we can use the following command:

sudo apt-get remove libmessage-passing-zeromq-perl

Uninstall libmessage-passing-zeromq-perl And Its Dependencies

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

sudo apt-get -y autoremove libmessage-passing-zeromq-perl

Remove libmessage-passing-zeromq-perl Configurations and Data

To remove libmessage-passing-zeromq-perl configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libmessage-passing-zeromq-perl

Remove libmessage-passing-zeromq-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libmessage-passing-zeromq-perl

References

Summary

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