From b9743ef9d04ee7147b285bfef1b7570340377c9a Mon Sep 17 00:00:00 2001 From: AndrewCz Date: Sun, 21 Jul 2019 18:55:02 -0400 Subject: [PATCH] Add documentation for installing on Debian/Ubuntu and CentOS/RHEL --- docs/install.rst | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/docs/install.rst b/docs/install.rst index 448644d..896a576 100644 --- a/docs/install.rst +++ b/docs/install.rst @@ -1,9 +1,35 @@ Install ======= +Using pip +--------- + +Install the dependencies from the operating system's repos, and then install ldapcherry using `pip`: + +.. sourcecode:: bash + + # RHEL/CentOS + $ sudo yum install epel-release && sudo yum install python-pip python-devel gcc openldap-devel + + # Debian/Ubuntu + $ sudo apt install python-dev python-pip libldap2-dev libsasl2-dev libssl-dev + + $ pip install ldapcherry + From the sources ---------------- +Install the dependencies from the operating system's repos: + +.. sourcecode:: bash + + # RHEL/CentOS + $ sudo yum install epel-release && sudo yum install python36-pip python36-devel python36-PyYAML gcc openldap-devel + + # Debian/Ubuntu + $ sudo apt install python-dev python-pip libldap2-dev libsasl2-dev libssl-dev + + Download the latest release from `GitHub `_. .. sourcecode:: bash