How To Install rubygem-net-ldap on CentOS 7

In this tutorial we learn how to install rubygem-net-ldap on CentOS 7. rubygem-net-ldap is Net::LDAP for Ruby implements client access LDAP protocol

Introduction

In this tutorial we learn how to install rubygem-net-ldap on CentOS 7.

What is rubygem-net-ldap

Net for the Lightweight Directory Access Protocol (LDAP), an IETF standard protocol for accessing distributed directory services. Net dependencies. It supports most LDAP client features and a subset of server features as well. Net modern popular LDAP servers including OpenLDAP and Active Directory. The current release is mostly compliant with earlier versions of the IETF LDAP RFCs (2251–2256, 2829–2830, 3377, and 3771). Our roadmap for Net compliance with the most recent LDAP RFCs (4510–4519, plus portions of 4520–4532).

We can use yum or dnf to install rubygem-net-ldap on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install rubygem-net-ldap.

Install rubygem-net-ldap on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install rubygem-net-ldap using yum by running the following command:

sudo yum -y install rubygem-net-ldap

Install rubygem-net-ldap on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install rubygem-net-ldap using dnf by running the following command:

sudo dnf -y install rubygem-net-ldap

How To Uninstall rubygem-net-ldap on CentOS 7

To uninstall only the rubygem-net-ldap package we can use the following command:

sudo dnf remove rubygem-net-ldap

References

Summary

In this tutorial we learn how to install rubygem-net-ldap on CentOS 7 using yum and dnf.