How to Uninstall or Install 389-ds Ubuntu 22.04

Updated: October 21, 2022

Based on the Lightweight Directory Access Protocol (LDAP), the 389 Directory Server is designed to manage large directories of users and resources robustly and scalably. In this tutorial, I will show you how to install 389-ds on Ubuntu 22.04.

Prerequisites

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

Prerequisites to install 389-ds on Ubuntu 22.04

Install 389-ds Ubuntu 22.04

389-ds is one of the popular ways on Ubuntu now so that this tutorial will show you how to install it in various ways. Choose the one you believe is simple and easy to follow.

Install 389-ds using APT

This is one of the most popular methods for installing Ubuntu packages since it is simple to understand, even if you are a Linux novice. Following these steps to get 389-ds on your Ubuntu.

Step 1: The APT package repository cache needs to be updated before you try to install, update, or remove any packages. Update the APT database to download new packages from Ubuntu. Opening the terminal and executing the following Linux command:

sudo apt -y update

Step 2: Start the package installation on Ubuntu 22.04. After updating, you can install 389-ds Ubuntu by pasting this command into the terminal and pressing Enter.

sudo apt -y install 389-ds

Install 389-ds using Aptitude

You must run this command to install Aptitude if you haven’t already done so on Ubuntu.

sudo apt install aptitude

Then, you can now install 389-ds by following these steps:

Step 1: You must update the APT package repository cache before attempting to install, update, or remove any packages. Update the APT database to fetch new packages from Ubuntu. Launch the terminal and enter the following Linux command:

sudo apt -y update

Step 2: Start the package installation on Ubuntu 22.04. After updating, you can install 389-ds Ubuntu by pasting this command into the terminal and executing it.

sudo aptitude install 389-ds

Uninstall 389-ds on Ubuntu 22.04

Have you ever considered how challenging it might be to uninstall an application from Ubuntu? You’re wrong, anyone can easily uninstall any program, not just a 389-ds.

If you installed 389-ds using APT or Aptitude, you could uninstall 389-ds on Ubuntu by following this step:

sudo apt remove --auto-remove 389-ds

You can also execute this command if you want to uninstall 389-ds and remove its data and dependencies:

sudo apt autoremove --purge 389-ds

Summary

In this guide, I showed you ways to install 389-ds on Ubuntu 22.04 and some ways to uninstall 389-ds too. Please contact me if you require any assistance. I’d be delighted to respond.