How To Install libdbd-ldap-perl on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libdbd-ldap-perl
on Ubuntu 20.04.
What is libdbd-ldap-perl
libdbd-ldap-perl is:
DBD::LDAP is a DBI extension module adding an SQL database interface to standard LDAP databases to Perl’s database-independent database interface. You will need access to an existing LDAP database or set up your own using an LDAP server, ie. “OpenLDAP”, see (http://www.openldap.org).
The main advantage of DBD::LDAP is the ability to query LDAP databases via standard SQL queries in leu of cryptic LDAP “filters”. LDAP is optimized for quick lookup of existing data, but DBD::LDAP does support entry inserts, updates, and deletes with commit/rollback via the standard SQL commands!
There are three methods to install libdbd-ldap-perl
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 libdbd-ldap-perl Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libdbd-ldap-perl
using apt-get
by running the following command:
sudo apt-get -y install libdbd-ldap-perl
Install libdbd-ldap-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libdbd-ldap-perl
using apt
by running the following command:
sudo apt -y install libdbd-ldap-perl
Install libdbd-ldap-perl 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 libdbd-ldap-perl
using aptitude
by running the following command:
sudo aptitude -y install libdbd-ldap-perl
How To Uninstall libdbd-ldap-perl on Ubuntu 20.04
To uninstall only the libdbd-ldap-perl
package we can use the following command:
sudo apt-get remove libdbd-ldap-perl
Uninstall libdbd-ldap-perl And Its Dependencies
To uninstall libdbd-ldap-perl
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libdbd-ldap-perl
Remove libdbd-ldap-perl Configurations and Data
To remove libdbd-ldap-perl
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libdbd-ldap-perl
Remove libdbd-ldap-perl configuration, data, and all of its dependencies
We can use the following command to remove libdbd-ldap-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libdbd-ldap-perl
References
Summary
In this tutorial we learn how to install libdbd-ldap-perl
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.