How To Install slapi-dev on Ubuntu 20.04

In this tutorial we learn how to install slapi-dev on Ubuntu 20.04. slapi-dev is development libraries for OpenLDAP SLAPI plugin interface development libraries for OpenLDAP SLAPI plugin interface development libraries for OpenLDAP SLAPI plugin interface

Introduction

In this tutorial we learn how to install slapi-dev on Ubuntu 20.04.

What is slapi-dev

slapi-dev is:

This package allows development of plugins for the OpenLDAP slapd server using the SLAPI interface. It includes the headers and libraries needed to build such plugins.

Package: slapi-dev Architecture: amd64 Version: 2.4.49+dfsg-2ubuntu1.7 Priority: optional Section: libdevel Source: openldap Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian OpenLDAP Maintainers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 132 Depends: slapd (= 2.4.49+dfsg-2ubuntu1.7) Filename: pool/main/o/openldap/slapi-dev_2.4.49+dfsg-2ubuntu1.7_amd64.deb Size: 14644 MD5sum: 08a2056eb4eef648cf0462ecd2389c6a SHA1: b2f8368fca60adceebb2bf7682fe4ee7be016dae SHA256: 0050d002045e48f7233fcd114d0603c5e51bd2f62f4d884d9d801fd1d9da1756 SHA512: cc56d744f3488743c1ca56525db9f69f0a93422d96a5b3a53123f18d43dcf2485692822e25b5dc263a1027eb0702f60febf16db0b211db1b12f6742d31591cc2 Homepage: http://www.openldap.org/ Description-en: development libraries for OpenLDAP SLAPI plugin interface This package allows development of plugins for the OpenLDAP slapd server using the SLAPI interface. It includes the headers and libraries needed to build such plugins.

Package: slapi-dev Architecture: amd64 Version: 2.4.49+dfsg-2ubuntu1 Priority: optional Section: libdevel Source: openldap Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian OpenLDAP Maintainers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 131 Depends: slapd (= 2.4.49+dfsg-2ubuntu1) Filename: pool/main/o/openldap/slapi-dev_2.4.49+dfsg-2ubuntu1_amd64.deb Size: 14624 MD5sum: 1b8711e2f274730171d8e03dc9568a93 SHA1: 56da4258ba475ea78e9a99072c3d8b948a7acc2b SHA256: 1db4c2818557526e669b59096c6b25e540abad12dd5f2980f866be2fdab5329b Homepage: http://www.openldap.org/ Description-en: development libraries for OpenLDAP SLAPI plugin interface This package allows development of plugins for the OpenLDAP slapd server using the SLAPI interface. It includes the headers and libraries needed to build such plugins.

There are three methods to install slapi-dev on Ubuntu 20.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-dev 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-dev using apt-get by running the following command:

sudo apt-get -y install slapi-dev

Install slapi-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install slapi-dev

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

sudo aptitude -y install slapi-dev

How To Uninstall slapi-dev on Ubuntu 20.04

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

sudo apt-get remove slapi-dev

Uninstall slapi-dev And Its Dependencies

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

sudo apt-get -y autoremove slapi-dev

Remove slapi-dev Configurations and Data

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

sudo apt-get -y purge slapi-dev

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

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

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

References

Summary

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