How To Install python3-ldap on Rocky Linux 8
Introduction
In this tutorial we learn how to install python3-ldap
on Rocky Linux 8.
What is python3-ldap
python-ldap provides an object-oriented API for working with LDAP within Python programs. It allows access to LDAP directory servers by wrapping the OpenLDAP 2.x libraries, and contains modules for other LDAP-related tasks (including processing LDIF, LDAPURLs, LDAPv3 schema, etc.).
We can use yum
or dnf
to install python3-ldap
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install python3-ldap.
Install python3-ldap on Rocky Linux 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install python3-ldap
using dnf
by running the following command:
sudo dnf -y install python3-ldap
Install python3-ldap on Rocky Linux 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install python3-ldap
using yum
by running the following command:
sudo yum -y install python3-ldap
How To Uninstall python3-ldap on Rocky Linux 8
To uninstall only the python3-ldap
package we can use the following command:
sudo dnf remove python3-ldap
python3-ldap Package Contents on Rocky Linux 8
/usr/lib/.build-id
/usr/lib/.build-id/3d
/usr/lib/.build-id/3d/cf711af1ea0e92221c7291050524484efd74a3
/usr/lib64/python3.6/site-packages/__pycache__/ldapurl.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/__pycache__/ldapurl.cpython-36.pyc
/usr/lib64/python3.6/site-packages/__pycache__/ldif.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/__pycache__/ldif.cpython-36.pyc
/usr/lib64/python3.6/site-packages/_ldap.cpython-36m-x86_64-linux-gnu.so
/usr/lib64/python3.6/site-packages/ldap
/usr/lib64/python3.6/site-packages/ldap/__init__.py
/usr/lib64/python3.6/site-packages/ldap/__pycache__
/usr/lib64/python3.6/site-packages/ldap/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/__pycache__/__init__.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/__pycache__/async.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/__pycache__/async.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/__pycache__/asyncsearch.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/__pycache__/asyncsearch.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/__pycache__/cidict.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/__pycache__/cidict.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/__pycache__/compat.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/__pycache__/compat.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/__pycache__/constants.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/__pycache__/constants.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/__pycache__/dn.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/__pycache__/dn.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/__pycache__/filter.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/__pycache__/filter.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/__pycache__/functions.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/__pycache__/functions.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/__pycache__/ldapobject.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/__pycache__/ldapobject.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/__pycache__/logger.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/__pycache__/logger.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/__pycache__/modlist.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/__pycache__/modlist.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/__pycache__/pkginfo.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/__pycache__/pkginfo.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/__pycache__/resiter.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/__pycache__/resiter.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/__pycache__/sasl.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/__pycache__/sasl.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/__pycache__/syncrepl.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/__pycache__/syncrepl.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/async.py
/usr/lib64/python3.6/site-packages/ldap/asyncsearch.py
/usr/lib64/python3.6/site-packages/ldap/cidict.py
/usr/lib64/python3.6/site-packages/ldap/compat.py
/usr/lib64/python3.6/site-packages/ldap/constants.py
/usr/lib64/python3.6/site-packages/ldap/controls
/usr/lib64/python3.6/site-packages/ldap/controls/__init__.py
/usr/lib64/python3.6/site-packages/ldap/controls/__pycache__
/usr/lib64/python3.6/site-packages/ldap/controls/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/controls/__pycache__/__init__.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/controls/__pycache__/deref.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/controls/__pycache__/deref.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/controls/__pycache__/libldap.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/controls/__pycache__/libldap.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/controls/__pycache__/openldap.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/controls/__pycache__/openldap.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/controls/__pycache__/pagedresults.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/controls/__pycache__/pagedresults.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/controls/__pycache__/ppolicy.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/controls/__pycache__/ppolicy.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/controls/__pycache__/psearch.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/controls/__pycache__/psearch.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/controls/__pycache__/pwdpolicy.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/controls/__pycache__/pwdpolicy.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/controls/__pycache__/readentry.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/controls/__pycache__/readentry.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/controls/__pycache__/sessiontrack.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/controls/__pycache__/sessiontrack.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/controls/__pycache__/simple.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/controls/__pycache__/simple.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/controls/__pycache__/sss.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/controls/__pycache__/sss.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/controls/__pycache__/vlv.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/controls/__pycache__/vlv.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/controls/deref.py
/usr/lib64/python3.6/site-packages/ldap/controls/libldap.py
/usr/lib64/python3.6/site-packages/ldap/controls/openldap.py
/usr/lib64/python3.6/site-packages/ldap/controls/pagedresults.py
/usr/lib64/python3.6/site-packages/ldap/controls/ppolicy.py
/usr/lib64/python3.6/site-packages/ldap/controls/psearch.py
/usr/lib64/python3.6/site-packages/ldap/controls/pwdpolicy.py
/usr/lib64/python3.6/site-packages/ldap/controls/readentry.py
/usr/lib64/python3.6/site-packages/ldap/controls/sessiontrack.py
/usr/lib64/python3.6/site-packages/ldap/controls/simple.py
/usr/lib64/python3.6/site-packages/ldap/controls/sss.py
/usr/lib64/python3.6/site-packages/ldap/controls/vlv.py
/usr/lib64/python3.6/site-packages/ldap/dn.py
/usr/lib64/python3.6/site-packages/ldap/extop
/usr/lib64/python3.6/site-packages/ldap/extop/__init__.py
/usr/lib64/python3.6/site-packages/ldap/extop/__pycache__
/usr/lib64/python3.6/site-packages/ldap/extop/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/extop/__pycache__/__init__.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/extop/__pycache__/dds.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/extop/__pycache__/dds.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/extop/__pycache__/passwd.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/extop/__pycache__/passwd.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/extop/dds.py
/usr/lib64/python3.6/site-packages/ldap/extop/passwd.py
/usr/lib64/python3.6/site-packages/ldap/filter.py
/usr/lib64/python3.6/site-packages/ldap/functions.py
/usr/lib64/python3.6/site-packages/ldap/ldapobject.py
/usr/lib64/python3.6/site-packages/ldap/logger.py
/usr/lib64/python3.6/site-packages/ldap/modlist.py
/usr/lib64/python3.6/site-packages/ldap/pkginfo.py
/usr/lib64/python3.6/site-packages/ldap/resiter.py
/usr/lib64/python3.6/site-packages/ldap/sasl.py
/usr/lib64/python3.6/site-packages/ldap/schema
/usr/lib64/python3.6/site-packages/ldap/schema/__init__.py
/usr/lib64/python3.6/site-packages/ldap/schema/__pycache__
/usr/lib64/python3.6/site-packages/ldap/schema/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/schema/__pycache__/__init__.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/schema/__pycache__/models.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/schema/__pycache__/models.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/schema/__pycache__/subentry.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/schema/__pycache__/subentry.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/schema/__pycache__/tokenizer.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/ldap/schema/__pycache__/tokenizer.cpython-36.pyc
/usr/lib64/python3.6/site-packages/ldap/schema/models.py
/usr/lib64/python3.6/site-packages/ldap/schema/subentry.py
/usr/lib64/python3.6/site-packages/ldap/schema/tokenizer.py
/usr/lib64/python3.6/site-packages/ldap/syncrepl.py
/usr/lib64/python3.6/site-packages/ldapurl.py
/usr/lib64/python3.6/site-packages/ldif.py
/usr/lib64/python3.6/site-packages/python_ldap-3.3.1-py3.6.egg-info
/usr/lib64/python3.6/site-packages/python_ldap-3.3.1-py3.6.egg-info/PKG-INFO
/usr/lib64/python3.6/site-packages/python_ldap-3.3.1-py3.6.egg-info/SOURCES.txt
/usr/lib64/python3.6/site-packages/python_ldap-3.3.1-py3.6.egg-info/dependency_links.txt
/usr/lib64/python3.6/site-packages/python_ldap-3.3.1-py3.6.egg-info/not-zip-safe
/usr/lib64/python3.6/site-packages/python_ldap-3.3.1-py3.6.egg-info/requires.txt
/usr/lib64/python3.6/site-packages/python_ldap-3.3.1-py3.6.egg-info/top_level.txt
/usr/lib64/python3.6/site-packages/slapdtest
/usr/lib64/python3.6/site-packages/slapdtest/__init__.py
/usr/lib64/python3.6/site-packages/slapdtest/__pycache__
/usr/lib64/python3.6/site-packages/slapdtest/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/slapdtest/__pycache__/__init__.cpython-36.pyc
/usr/lib64/python3.6/site-packages/slapdtest/__pycache__/_slapdtest.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/slapdtest/__pycache__/_slapdtest.cpython-36.pyc
/usr/lib64/python3.6/site-packages/slapdtest/_slapdtest.py
/usr/lib64/python3.6/site-packages/slapdtest/certs
/usr/lib64/python3.6/site-packages/slapdtest/certs/README
/usr/lib64/python3.6/site-packages/slapdtest/certs/ca.conf
/usr/lib64/python3.6/site-packages/slapdtest/certs/ca.pem
/usr/lib64/python3.6/site-packages/slapdtest/certs/client.conf
/usr/lib64/python3.6/site-packages/slapdtest/certs/client.key
/usr/lib64/python3.6/site-packages/slapdtest/certs/client.pem
/usr/lib64/python3.6/site-packages/slapdtest/certs/gencerts.sh
/usr/lib64/python3.6/site-packages/slapdtest/certs/gennssdb.sh
/usr/lib64/python3.6/site-packages/slapdtest/certs/server.conf
/usr/lib64/python3.6/site-packages/slapdtest/certs/server.key
/usr/lib64/python3.6/site-packages/slapdtest/certs/server.pem
/usr/share/doc/python3-ldap
/usr/share/doc/python3-ldap/CHANGES
/usr/share/doc/python3-ldap/Demo
/usr/share/doc/python3-ldap/Demo/Lib
/usr/share/doc/python3-ldap/Demo/Lib/ldap
/usr/share/doc/python3-ldap/Demo/Lib/ldap/async
/usr/share/doc/python3-ldap/Demo/Lib/ldap/async/deltree.py
/usr/share/doc/python3-ldap/Demo/Lib/ldap/async/ldifwriter.py
/usr/share/doc/python3-ldap/Demo/Lib/ldap/async/sizelimit.py
/usr/share/doc/python3-ldap/Demo/Lib/ldapurl
/usr/share/doc/python3-ldap/Demo/Lib/ldapurl/urlsearch.py
/usr/share/doc/python3-ldap/Demo/Lib/ldif
/usr/share/doc/python3-ldap/Demo/Lib/ldif/ldifcopy.py
/usr/share/doc/python3-ldap/Demo/initialize.py
/usr/share/doc/python3-ldap/Demo/ldapcontrols.py
/usr/share/doc/python3-ldap/Demo/ldapurl_search.py
/usr/share/doc/python3-ldap/Demo/matchedvalues.py
/usr/share/doc/python3-ldap/Demo/ms_ad_bind.py
/usr/share/doc/python3-ldap/Demo/options.py
/usr/share/doc/python3-ldap/Demo/page_control.py
/usr/share/doc/python3-ldap/Demo/paged_search_ext_s.py
/usr/share/doc/python3-ldap/Demo/passwd_ext_op.py
/usr/share/doc/python3-ldap/Demo/pickle_ldapobject.py
/usr/share/doc/python3-ldap/Demo/pyasn1
/usr/share/doc/python3-ldap/Demo/pyasn1/dds.py
/usr/share/doc/python3-ldap/Demo/pyasn1/derefcontrol.py
/usr/share/doc/python3-ldap/Demo/pyasn1/noopsearch.py
/usr/share/doc/python3-ldap/Demo/pyasn1/ppolicy.py
/usr/share/doc/python3-ldap/Demo/pyasn1/psearch.py
/usr/share/doc/python3-ldap/Demo/pyasn1/readentrycontrol.py
/usr/share/doc/python3-ldap/Demo/pyasn1/sessiontrack.py
/usr/share/doc/python3-ldap/Demo/pyasn1/sss_highest_number.py
/usr/share/doc/python3-ldap/Demo/pyasn1/syncrepl.py
/usr/share/doc/python3-ldap/Demo/reconnect.py
/usr/share/doc/python3-ldap/Demo/rename.py
/usr/share/doc/python3-ldap/Demo/resiter.py
/usr/share/doc/python3-ldap/Demo/sasl_bind.py
/usr/share/doc/python3-ldap/Demo/schema.py
/usr/share/doc/python3-ldap/Demo/schema_tree.py
/usr/share/doc/python3-ldap/Demo/simple.py
/usr/share/doc/python3-ldap/Demo/simplebrowse.py
/usr/share/doc/python3-ldap/README
/usr/share/doc/python3-ldap/TODO
/usr/share/licenses/python3-ldap
/usr/share/licenses/python3-ldap/LICENCE
References
Summary
In this tutorial we learn how to install python3-ldap
on Rocky Linux 8 using yum and dnf.