How to Install or Uninstall ejabberd Ubuntu 22.04

Updated: September 18, 2022

ejabberd is a Jabber/XMPP + MQTT + SIP server written in Erlang, featuring: I will show you how to install ejabberd on Ubuntu 22.04 in this tutorial.

Prerequisites

  • OS: Ubuntu 22.04 or older Ubuntu versions
  • Privileges: Make sure that you can run the sudo commands line.

Prerequisites to install ejabberd on Ubuntu 22.04

Install ejabberd Ubuntu 22.04

ejabberd is one of the popular ways on Ubuntu now so that this tutorial will show you some ways to install it. Choose the one you believe is simple and easy to follow.

Install ejabberd using APT

This is one of the most popular methods for installing Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these steps to install ejabberd on your Ubuntu 22.04.

Step 1: Update the APT database to download new packages from Ubuntu. Opening the terminal and executing this Linux command:

sudo apt -y update

Step 2: Start the package installation on Ubuntu 22.04. After updating, you can install ejabberd Ubuntu by executing this command in the terminal.

sudo apt -y install ejabberd

Install ejabberd using Aptitude

If you didn’t install Aptitude on Ubuntu, you need to install it by executing this command.

sudo apt-get install aptitude

After installing, you can now install ejabberd by following these steps:

Step 1: Update the APT database to fetch new packages from Ubuntu. Opening the terminal and executing the following Linux command:

sudo apt-get update

Step 2: Start installing the packages on Ubuntu 22.04. After updating the system, you can install ejabberd Ubuntu by executing this command in the terminal.

sudo aptitude -y install ejabberd

Uninstall ejabberd on Ubuntu 22.04

Have you ever thought that uninstalling an application from Ubuntu is difficult? You are mistaken; Anyone can easily uninstall any program, not just ejabberd.

You can uninstall ejabberd Ubuntu by running this command if you installed it using APT or Aptitude.

sudo apt remove --auto-remove ejabberd

If you want to uninstall ejabberd and delete its data and dependencies, you can also run the following command:

sudo apt autoremove --purge ejabberd

Ending

In this tutorial, I showed you ways to install ejabberd on Ubuntu 22.04 and some ways to uninstall ejabberd too. Please do not hesitate to contact me if you require any assistance. I’m delighted to respond to them.