diff --git a/docs/installation.rst b/docs/installation.rst index 24a138e9..06f6e3d2 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -139,6 +139,32 @@ from sources <#installing-head-revision-from-sources>`__. .. _ubuntu-lts-latest: +RHEL 9 +------ + +Prepare the environment by getting Python 3.11: + +.. code-block:: bash + + dnf install python3.11 python3.11-pip + +Then, follow `Requirements for pip and HEAD install <#requirements-for-pip-and-head-install>`__ to instal dependencies: + +.. code-block:: bash + + dnf install ghostscript tesseract + +and build ocrmypdf in virtual environment: + +.. code-block:: bash + + python3.11 -m venv .venv + +To add JBIG2 encoding, see `Installing the JBIG2 encoder `__. + +Note Fedora packages for language data haven't been branched for RHEL/EPEL, but you can get traineddata files directly from `tesseract +`__ and place them in ``/usr/share/tesseract/tessdata``. + Installing the latest version on Ubuntu 22.04 LTS ------------------------------------------------- @@ -553,7 +579,7 @@ manager. ``pip`` cannot provide them. The following versions are required: - Python 3.10 or newer -- Ghostscript 9.55 or newer +- Ghostscript 9.54 or newer - Tesseract 4.1.1 or newer - jbig2enc 0.29 or newer - pngquant 2.5 or newer