From 3b4d025a8eefedb1e157086b6d7a94ec3b2146aa Mon Sep 17 00:00:00 2001 From: villepeh <100730729+villepeh@users.noreply.github.com> Date: Thu, 11 Jul 2024 21:15:16 +0300 Subject: [PATCH] Add Oracle Linux installation instructions The guide applies to OEL as well. --- docs/setup/installation.md | 25 +++++++------------------ 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/docs/setup/installation.md b/docs/setup/installation.md index f538e1498a6..4a4a5e7a974 100644 --- a/docs/setup/installation.md +++ b/docs/setup/installation.md @@ -312,29 +312,18 @@ sudo dnf install libtiff-devel libjpeg-devel libzip-devel freetype-devel \ sudo dnf group install "Development Tools" ``` -##### Red Hat Enterprise Linux / Rocky Linux +##### Red Hat Enterprise Linux / Rocky Linux / Oracle Linux -*Note: The term "RHEL" below refers to both Red Hat Enterprise Linux and Rocky Linux. The distributions are 1:1 binary compatible.* +*Note: The term "EL" below refers to Red Hat Enterprise Linux, Oracle Linux and Rocky Linux. The distributions are 1:1 binary compatible.* -It's recommended to use the latest Python versions. +It's recommended to use the latest Python versions. -RHEL 8 in particular ships with Python 3.6 by default which is EOL and therefore no longer supported by Synapse. RHEL 9 ship with Python 3.9 which is still supported by the Python core team as of this writing. However, newer Python versions provide significant performance improvements and they're available in official distributions' repositories. Therefore it's recommended to use them. +EL 8 in particular ships with Python 3.6 by default which is EOL and therefore no longer supported by Synapse. EL 9 ships with Python 3.9 which is still supported by the Python core team as of this writing. However, newer Python versions provide significant performance improvements and they're available in official distributions' repositories. Therefore it's recommended to use them. -Python 3.11 and 3.12 are available for both RHEL 8 and 9. +Python 3.11 and 3.12 are available for both EL 8 and 9. These commands should be run as root user. -RHEL 8 -```bash -# Enable PowerTools repository -dnf config-manager --set-enabled powertools -``` -RHEL 9 -```bash -# Enable CodeReady Linux Builder repository -crb enable -``` - Install new version of Python. You only need one of these: ```bash # Python 3.11 @@ -352,8 +341,8 @@ dnf group install "Development Tools" ###### Using venv module instead of virtualenv command It's recommended to use Python venv module directly rather than the virtualenv command. -* On RHEL 9, virtualenv is only available on [EPEL](https://docs.fedoraproject.org/en-US/epel/). -* On RHEL 8, virtualenv is based on Python 3.6. It does not support creating 3.11/3.12 virtual environments. +* On EL 9, virtualenv is only available on [EPEL](https://docs.fedoraproject.org/en-US/epel/). +* On EL 8, virtualenv is based on Python 3.6. It does not support creating 3.11/3.12 virtual environments. Here's an example of creating Python 3.12 virtual environment and installing Synapse from PyPI.