How To Install ldap-utils on Ubuntu 20.04
Introduction
In this tutorial we learn how to install ldap-utils
on Ubuntu 20.04.
What is ldap-utils
ldap-utils is:
This package provides utilities from the OpenLDAP (Lightweight Directory Access Protocol) package. These utilities can access a local or remote LDAP server and contain all the client programs required to access LDAP servers.
Package: ldap-utils Architecture: amd64 Version: 2.4.49+dfsg-2ubuntu1.7 Priority: optional Section: net 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: 728 Provides: ldap-client, openldap-utils Depends: libc6 (>= 2.14), libldap-2.4-2 (= 2.4.49+dfsg-2ubuntu1.7), libsasl2-2 (>= 2.1.27+dfsg) Recommends: libsasl2-modules Suggests: libsasl2-modules-gssapi-mit | libsasl2-modules-gssapi-heimdal Conflicts: ldap-client, openldap-utils, umich-ldap-utils Replaces: openldap-utils, openldapd, slapd (« 2.2.23-0.pre6) Filename: pool/main/o/openldap/ldap-utils_2.4.49+dfsg-2ubuntu1.7_amd64.deb Size: 121704 MD5sum: 29d88016e4225396dac7fa7b5c3b7315 SHA1: d6c81d1065a9cceee855038a87f68bff67142c95 SHA256: 0d4720fe00a03aeb6e31bd9c9f88b404b8e6846880cc31e7c974252e6e3ac6f3 SHA512: f60137a47da876b3214535f805a1dc383e37e47d876861b856b98c38fbd2f938b23de3f07124c05b1e06140d2907ae962ccb69ed8a4e96611dec9c5c6b72d916 Homepage: http://www.openldap.org/ Description-en: OpenLDAP utilities This package provides utilities from the OpenLDAP (Lightweight Directory Access Protocol) package. These utilities can access a local or remote LDAP server and contain all the client programs required to access LDAP servers.
Package: ldap-utils Architecture: amd64 Version: 2.4.49+dfsg-2ubuntu1 Priority: optional Section: net 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: 727 Provides: ldap-client, openldap-utils Depends: libc6 (>= 2.14), libldap-2.4-2 (= 2.4.49+dfsg-2ubuntu1), libsasl2-2 (>= 2.1.27+dfsg) Recommends: libsasl2-modules Suggests: libsasl2-modules-gssapi-mit | libsasl2-modules-gssapi-heimdal Conflicts: ldap-client, openldap-utils, umich-ldap-utils Replaces: openldap-utils, openldapd, slapd (« 2.2.23-0.pre6) Filename: pool/main/o/openldap/ldap-utils_2.4.49+dfsg-2ubuntu1_amd64.deb Size: 121640 MD5sum: 340e5c2ff23328819d054fa250773900 SHA1: 8dac80fb16bdf33c6205a833b2db52bca99f2893 SHA256: 0b14dd3b9c365140939adc9a3f6a8c72cd96b24389621eed1995f420b9ea3ff3 Homepage: http://www.openldap.org/ Description-en: OpenLDAP utilities This package provides utilities from the OpenLDAP (Lightweight Directory Access Protocol) package. These utilities can access a local or remote LDAP server and contain all the client programs required to access LDAP servers.
There are three methods to install ldap-utils
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 ldap-utils Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install ldap-utils
using apt-get
by running the following command:
sudo apt-get -y install ldap-utils
Install ldap-utils Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install ldap-utils
using apt
by running the following command:
sudo apt -y install ldap-utils
Install ldap-utils 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 ldap-utils
using aptitude
by running the following command:
sudo aptitude -y install ldap-utils
How To Uninstall ldap-utils on Ubuntu 20.04
To uninstall only the ldap-utils
package we can use the following command:
sudo apt-get remove ldap-utils
Uninstall ldap-utils And Its Dependencies
To uninstall ldap-utils
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove ldap-utils
Remove ldap-utils Configurations and Data
To remove ldap-utils
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge ldap-utils
Remove ldap-utils configuration, data, and all of its dependencies
We can use the following command to remove ldap-utils
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge ldap-utils
References
Summary
In this tutorial we learn how to install ldap-utils
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.