How To Install slapi-nis on Ubuntu 18.04

In this tutorial we learn how to install slapi-nis on Ubuntu 18.04. slapi-nis is NIS Server and Schema Compatibility plugins for 389 Directory Server

Introduction

In this tutorial we learn how to install slapi-nis on Ubuntu 18.04.

What is slapi-nis

slapi-nis is:

This package provides two plugins for Red Hat and 389 Directory Server.

The NIS Server plugin allows the directory server to act as a NIS server for clients, dynamically generating and updating NIS maps according to its configuration and the contents of the DIT, and serving the results to clients using the NIS protocol as if it were an ordinary NIS server.

The Schema Compatibility plugin allows the directory server to provide an alternate view of entries stored in part of the DIT, optionally adding, dropping, or renaming attribute values, and optionally retrieving values for attributes from multiple entries in the tree.

There are three methods to install slapi-nis 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 slapi-nis Using apt-get

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

sudo apt-get update

After updating apt database, We can install slapi-nis using apt-get by running the following command:

sudo apt-get -y install slapi-nis

Install slapi-nis Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install slapi-nis using apt by running the following command:

sudo apt -y install slapi-nis

Install slapi-nis 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 slapi-nis using aptitude by running the following command:

sudo aptitude -y install slapi-nis

How To Uninstall slapi-nis on Ubuntu 18.04

To uninstall only the slapi-nis package we can use the following command:

sudo apt-get remove slapi-nis

Uninstall slapi-nis And Its Dependencies

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

sudo apt-get -y autoremove slapi-nis

Remove slapi-nis Configurations and Data

To remove slapi-nis configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge slapi-nis

Remove slapi-nis configuration, data, and all of its dependencies

We can use the following command to remove slapi-nis configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge slapi-nis

References

Summary

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