From 97842be46d1efc114936d4f599d13228914c6c83 Mon Sep 17 00:00:00 2001 From: Musee Ullah Date: Mon, 12 Nov 2018 12:31:46 -0800 Subject: [PATCH] Add Py3 migration notes for CentOS --- docs/installation/migrating-to-python3.md | 38 +++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/docs/installation/migrating-to-python3.md b/docs/installation/migrating-to-python3.md index b2efadea1..62681fad6 100644 --- a/docs/installation/migrating-to-python3.md +++ b/docs/installation/migrating-to-python3.md @@ -36,3 +36,41 @@ If using LDAP authentication, install the `django-auth-ldap` package: ```no-highlight # pip3 install django-auth-ldap ``` + +## CentOS/RHEL + +Remove the Python2 version of gunicorn: + +```no-highlight +# pip uninstall -y gunicorn +``` + +Ensure EPEL is installed: + +```no-highlight +# yum install -y epel-release +``` + +Install Python3: + +```no-highlight +# yum install -y python36 python36-devel python36-setuptools +``` + +Install the Python3 packages required by NetBox: + +```no-highlight +# python3.6 -m pip install -r requirements.txt +``` + +Replace gunicorn with the Python3 version: + +```no-highlight +# python3.6 -m pip install gunicorn +``` + +If using LDAP authentication, install the `django-auth-ldap` package: + +```no-highlight +# python3.6 -m pip install django-auth-ldap +```