How to Install and Uninstall php-ldap Package on Ubuntu 20.04 LTS (Focal Fossa)

Last updated: July 18,2024

1. Install "php-ldap" package

This is a short guide on how to install php-ldap on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install php-ldap

2. Uninstall "php-ldap" package

Here is a brief guide to show you how to uninstall php-ldap on Ubuntu 20.04 LTS (Focal Fossa):

$ sudo apt remove php-ldap $ sudo apt autoclean && sudo apt autoremove

3. Information about the php-ldap package on Ubuntu 20.04 LTS (Focal Fossa)

Package: php-ldap
Source: php-defaults (
Priority: optional
Section: php
Installed-Size: 14
Maintainer: Debian PHP Maintainers
Architecture: all
Depends: php-common, php8.3-ldap
Filename: pool/main/p/php-defaults/
Size: 7340
MD5sum: f98ea7b73be5bfe57d9d970a00332c34
SHA1: 4768534632cd7d16d6820a70da0fc2e0373db563
SHA256: 4d763ecb83e007c3e5e9411a2875685d637c9b151aa51b8f5d5a469eb9a2449d
Description: LDAP module for PHP [default]
Description-md5: 57df16de86a8de88d3709b51726cbeaa

Package: php-ldap
Architecture: all
Version: 2:7.4+75
Priority: optional
Section: php
Source: php-defaults (75)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Installed-Size: 13
Depends: php-common, php7.4-ldap
Filename: pool/main/p/php-defaults/php-ldap_7.4+75_all.deb
Size: 2004
MD5sum: 108638a6e68ba7266985182a507bf1b8
SHA1: 1acdf42f840250b4d22c1947d7dbb9852ee5c8c2
SHA256: 8c5b7b1e45c16bc630c1152cdbc53c7b3b354f9d81b2d3d66478f3fd8dfd7fe5
Description: LDAP module for PHP [default]
Description-md5: 6075d6be9bd5f375194e0983bcc461d4