Skip to content

Commit

Permalink
Advise Homebrew on Linux for Ubuntu 20.04
Browse files Browse the repository at this point in the history
  • Loading branch information
jbarlow83 committed Feb 8, 2024
1 parent 0bc350f commit 6a9be21
Showing 1 changed file with 5 additions and 29 deletions.
34 changes: 5 additions & 29 deletions docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -188,37 +188,13 @@ To add JBIG2 encoding, see :ref:`jbig2`.
Ubuntu 20.04 LTS
----------------

Ubuntu 20.04 includes ocrmypdf 9.6.0 - you can install that with ``apt``. To
install a more recent version, uninstall the system-provided version of
ocrmypdf, and install the following dependencies:
Ubuntu 20.04 includes ocrmypdf 9.6.0 - you can install that with ``apt``. The
most convenient way to install recent OCRmyPDF on older Ubuntu is to use
Homebrew on Linux (Linuxbrew).

.. code-block:: bash
sudo apt-get -y remove ocrmypdf # remove system ocrmypdf, if installed
sudo apt-get -y update
sudo apt-get -y install \
ghostscript \
icc-profiles-free \
libxml2 \
pngquant \
python3-pip \
tesseract-ocr \
zlib1g
To install ocrmypdf for the system:

.. code-block:: bash
pip3 install ocrmypdf
To install for the current user only:

.. code-block:: bash
export PATH=$HOME/.local/bin:$PATH
pip3 install --user ocrmypdf
To add JBIG2 encoding, see :ref:`jbig2`.
brew install ocrmypdf
Arch Linux (AUR)
----------------
Expand Down Expand Up @@ -697,7 +673,7 @@ To manually install the ``fish`` completion, copy
Note on 32-bit support
======================

Many Python libraries no longer 32-bit binary wheels for Linux. This
Many Python libraries no longer provide 32-bit binary wheels for Linux. This
includes many of the libraries that OCRmyPDF depends on, such as
Pillow. The easiest way to express this to end users is to say we don't
support 32-bit Linux.
Expand Down

0 comments on commit 6a9be21

Please sign in to comment.