How To Install python3-ldb-dev on Ubuntu 20.04

In this tutorial we learn how to install python3-ldb-dev on Ubuntu 20.04. python3-ldb-dev is LDB Python 3 bindings - development files LDB Python 3 bindings - development files

Introduction

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

What is python3-ldb-dev

python3-ldb-dev is:

ldb is a LDAP-like embedded database built on top of TDB.

It is a fast database with an LDAP-like API designed to be used within an application. In some ways it can be seen as a intermediate solution between key-value pair databases and a real LDAP database.

This package contains the development files for the Python 3 bindings.

Package: python3-ldb-dev Architecture: amd64 Version: 2:2.0.8-2 Multi-Arch: same Priority: optional Section: libdevel Source: ldb Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian Samba Maintainers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 44 Depends: libc6-dev, libldb-dev, pkg-config, python3-ldb (= 2:2.0.8-2) Filename: pool/main/l/ldb/python3-ldb-dev_2.0.8-2_amd64.deb Size: 7140 MD5sum: 2bff6249fcb1ff78e4364a6802ee6e45 SHA1: 6da5db3aba8f4968c9639c528980402356932a5d SHA256: f6a6ed409900fb4b7b98315592ee59902f58936b3fc233178c34a76de21a07c3 Homepage: https://ldb.samba.org/ Description-en: LDB Python 3 bindings - development files ldb is a LDAP-like embedded database built on top of TDB.

It is a fast database with an LDAP-like API designed to be used within an application. In some ways it can be seen as a intermediate solution between key-value pair databases and a real LDAP database.

This package contains the development files for the Python 3 bindings.

There are three methods to install python3-ldb-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 python3-ldb-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 python3-ldb-dev using apt-get by running the following command:

sudo apt-get -y install python3-ldb-dev

Install python3-ldb-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python3-ldb-dev

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

sudo aptitude -y install python3-ldb-dev

How To Uninstall python3-ldb-dev on Ubuntu 20.04

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

sudo apt-get remove python3-ldb-dev

Uninstall python3-ldb-dev And Its Dependencies

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

sudo apt-get -y autoremove python3-ldb-dev

Remove python3-ldb-dev Configurations and Data

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

sudo apt-get -y purge python3-ldb-dev

Remove python3-ldb-dev configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge python3-ldb-dev

References

Summary

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