How To Install ejabberd-mod-muc-log-http on Ubuntu 18.04

In this tutorial we learn how to install ejabberd-mod-muc-log-http on Ubuntu 18.04. ejabberd-mod-muc-log-http is serves MUC logs on the web

Introduction

In this tutorial we learn how to install ejabberd-mod-muc-log-http on Ubuntu 18.04.

What is ejabberd-mod-muc-log-http

ejabberd-mod-muc-log-http is:

This module serves the directory containing MUC logs already configured on mod_muc_log. This way there is no need to set up a separate web server to allow your users to view the MUC logs. It is a small modification of mod_http_fileserver, customized for log serving.

There are three methods to install ejabberd-mod-muc-log-http 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 ejabberd-mod-muc-log-http Using apt-get

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

sudo apt-get update

After updating apt database, We can install ejabberd-mod-muc-log-http using apt-get by running the following command:

sudo apt-get -y install ejabberd-mod-muc-log-http

Install ejabberd-mod-muc-log-http Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install ejabberd-mod-muc-log-http using apt by running the following command:

sudo apt -y install ejabberd-mod-muc-log-http

Install ejabberd-mod-muc-log-http 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 ejabberd-mod-muc-log-http using aptitude by running the following command:

sudo aptitude -y install ejabberd-mod-muc-log-http

How To Uninstall ejabberd-mod-muc-log-http on Ubuntu 18.04

To uninstall only the ejabberd-mod-muc-log-http package we can use the following command:

sudo apt-get remove ejabberd-mod-muc-log-http

Uninstall ejabberd-mod-muc-log-http And Its Dependencies

To uninstall ejabberd-mod-muc-log-http and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove ejabberd-mod-muc-log-http

Remove ejabberd-mod-muc-log-http Configurations and Data

To remove ejabberd-mod-muc-log-http configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge ejabberd-mod-muc-log-http

Remove ejabberd-mod-muc-log-http configuration, data, and all of its dependencies

We can use the following command to remove ejabberd-mod-muc-log-http configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge ejabberd-mod-muc-log-http

References

Summary

In this tutorial we learn how to install ejabberd-mod-muc-log-http package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.