How To Install ocrmypdf on Fedora 36

In this tutorial we learn how to install ocrmypdf in Fedora 36. ocrmypdf is Add an OCR text layer to scanned PDF files

Introduction

In this tutorial we learn how to install ocrmypdf on Fedora 36.

What is ocrmypdf

OCRmyPDF adds an OCR text layer to scanned PDF files, allowing them to be searched or copy-pasted.

We can use yum or dnf to install ocrmypdf on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install ocrmypdf.

Install ocrmypdf on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install ocrmypdf using dnf by running the following command:

sudo dnf -y install ocrmypdf

Install ocrmypdf on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install ocrmypdf using yum by running the following command:

sudo yum -y install ocrmypdf

How To Uninstall ocrmypdf on Fedora 36

To uninstall only the ocrmypdf package we can use the following command:

sudo dnf remove ocrmypdf

ocrmypdf Package Contents on Fedora 36

/usr/bin/ocrmypdf
/usr/lib/python3.10/site-packages/ocrmypdf
/usr/lib/python3.10/site-packages/ocrmypdf-13.4.2.dist-info
/usr/lib/python3.10/site-packages/ocrmypdf-13.4.2.dist-info/INSTALLER
/usr/lib/python3.10/site-packages/ocrmypdf-13.4.2.dist-info/LICENSE
/usr/lib/python3.10/site-packages/ocrmypdf-13.4.2.dist-info/METADATA
/usr/lib/python3.10/site-packages/ocrmypdf-13.4.2.dist-info/WHEEL
/usr/lib/python3.10/site-packages/ocrmypdf-13.4.2.dist-info/entry_points.txt
/usr/lib/python3.10/site-packages/ocrmypdf-13.4.2.dist-info/top_level.txt
/usr/lib/python3.10/site-packages/ocrmypdf/__init__.py
/usr/lib/python3.10/site-packages/ocrmypdf/__main__.py
/usr/lib/python3.10/site-packages/ocrmypdf/__pycache__
/usr/lib/python3.10/site-packages/ocrmypdf/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/__pycache__/__main__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/__pycache__/__main__.cpython-310.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/__pycache__/_concurrent.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/__pycache__/_concurrent.cpython-310.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/__pycache__/_graft.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/__pycache__/_graft.cpython-310.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/__pycache__/_jobcontext.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/__pycache__/_jobcontext.cpython-310.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/__pycache__/_logging.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/__pycache__/_logging.cpython-310.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/__pycache__/_pipeline.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/__pycache__/_pipeline.cpython-310.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/__pycache__/_plugin_manager.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/__pycache__/_plugin_manager.cpython-310.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/__pycache__/_sync.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/__pycache__/_sync.cpython-310.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/__pycache__/_validation.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/__pycache__/_validation.cpython-310.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/__pycache__/_version.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/__pycache__/_version.cpython-310.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/__pycache__/api.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/__pycache__/api.cpython-310.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/__pycache__/cli.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/__pycache__/cli.cpython-310.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/__pycache__/exceptions.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/__pycache__/exceptions.cpython-310.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/__pycache__/helpers.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/__pycache__/helpers.cpython-310.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/__pycache__/hocrtransform.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/__pycache__/hocrtransform.cpython-310.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/__pycache__/optimize.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/__pycache__/optimize.cpython-310.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/__pycache__/pdfa.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/__pycache__/pdfa.cpython-310.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/__pycache__/pluginspec.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/__pycache__/pluginspec.cpython-310.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/__pycache__/quality.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/__pycache__/quality.cpython-310.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/_concurrent.py
/usr/lib/python3.10/site-packages/ocrmypdf/_exec
/usr/lib/python3.10/site-packages/ocrmypdf/_exec/__init__.py
/usr/lib/python3.10/site-packages/ocrmypdf/_exec/__pycache__
/usr/lib/python3.10/site-packages/ocrmypdf/_exec/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/_exec/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/_exec/__pycache__/ghostscript.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/_exec/__pycache__/ghostscript.cpython-310.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/_exec/__pycache__/jbig2enc.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/_exec/__pycache__/jbig2enc.cpython-310.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/_exec/__pycache__/pngquant.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/_exec/__pycache__/pngquant.cpython-310.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/_exec/__pycache__/tesseract.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/_exec/__pycache__/tesseract.cpython-310.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/_exec/__pycache__/unpaper.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/_exec/__pycache__/unpaper.cpython-310.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/_exec/ghostscript.py
/usr/lib/python3.10/site-packages/ocrmypdf/_exec/jbig2enc.py
/usr/lib/python3.10/site-packages/ocrmypdf/_exec/pngquant.py
/usr/lib/python3.10/site-packages/ocrmypdf/_exec/tesseract.py
/usr/lib/python3.10/site-packages/ocrmypdf/_exec/unpaper.py
/usr/lib/python3.10/site-packages/ocrmypdf/_graft.py
/usr/lib/python3.10/site-packages/ocrmypdf/_jobcontext.py
/usr/lib/python3.10/site-packages/ocrmypdf/_logging.py
/usr/lib/python3.10/site-packages/ocrmypdf/_pipeline.py
/usr/lib/python3.10/site-packages/ocrmypdf/_plugin_manager.py
/usr/lib/python3.10/site-packages/ocrmypdf/_sync.py
/usr/lib/python3.10/site-packages/ocrmypdf/_validation.py
/usr/lib/python3.10/site-packages/ocrmypdf/_version.py
/usr/lib/python3.10/site-packages/ocrmypdf/api.py
/usr/lib/python3.10/site-packages/ocrmypdf/builtin_plugins
/usr/lib/python3.10/site-packages/ocrmypdf/builtin_plugins/__init__.py
/usr/lib/python3.10/site-packages/ocrmypdf/builtin_plugins/__pycache__
/usr/lib/python3.10/site-packages/ocrmypdf/builtin_plugins/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/builtin_plugins/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/builtin_plugins/__pycache__/concurrency.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/builtin_plugins/__pycache__/concurrency.cpython-310.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/builtin_plugins/__pycache__/default_filters.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/builtin_plugins/__pycache__/default_filters.cpython-310.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/builtin_plugins/__pycache__/ghostscript.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/builtin_plugins/__pycache__/ghostscript.cpython-310.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/builtin_plugins/__pycache__/tesseract_ocr.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/builtin_plugins/__pycache__/tesseract_ocr.cpython-310.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/builtin_plugins/concurrency.py
/usr/lib/python3.10/site-packages/ocrmypdf/builtin_plugins/default_filters.py
/usr/lib/python3.10/site-packages/ocrmypdf/builtin_plugins/ghostscript.py
/usr/lib/python3.10/site-packages/ocrmypdf/builtin_plugins/tesseract_ocr.py
/usr/lib/python3.10/site-packages/ocrmypdf/cli.py
/usr/lib/python3.10/site-packages/ocrmypdf/data
/usr/lib/python3.10/site-packages/ocrmypdf/data/__init__.py
/usr/lib/python3.10/site-packages/ocrmypdf/data/__pycache__
/usr/lib/python3.10/site-packages/ocrmypdf/data/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/data/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/data/sRGB.icc
/usr/lib/python3.10/site-packages/ocrmypdf/exceptions.py
/usr/lib/python3.10/site-packages/ocrmypdf/extra_plugins
/usr/lib/python3.10/site-packages/ocrmypdf/extra_plugins/__init__.py
/usr/lib/python3.10/site-packages/ocrmypdf/extra_plugins/__pycache__
/usr/lib/python3.10/site-packages/ocrmypdf/extra_plugins/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/extra_plugins/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/extra_plugins/__pycache__/semfree.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/extra_plugins/__pycache__/semfree.cpython-310.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/extra_plugins/semfree.py
/usr/lib/python3.10/site-packages/ocrmypdf/helpers.py
/usr/lib/python3.10/site-packages/ocrmypdf/hocrtransform.py
/usr/lib/python3.10/site-packages/ocrmypdf/optimize.py
/usr/lib/python3.10/site-packages/ocrmypdf/pdfa.py
/usr/lib/python3.10/site-packages/ocrmypdf/pdfinfo
/usr/lib/python3.10/site-packages/ocrmypdf/pdfinfo/__init__.py
/usr/lib/python3.10/site-packages/ocrmypdf/pdfinfo/__pycache__
/usr/lib/python3.10/site-packages/ocrmypdf/pdfinfo/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/pdfinfo/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/pdfinfo/__pycache__/info.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/pdfinfo/__pycache__/info.cpython-310.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/pdfinfo/__pycache__/layout.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/pdfinfo/__pycache__/layout.cpython-310.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/pdfinfo/info.py
/usr/lib/python3.10/site-packages/ocrmypdf/pdfinfo/layout.py
/usr/lib/python3.10/site-packages/ocrmypdf/pluginspec.py
/usr/lib/python3.10/site-packages/ocrmypdf/py.typed
/usr/lib/python3.10/site-packages/ocrmypdf/quality.py
/usr/lib/python3.10/site-packages/ocrmypdf/subprocess
/usr/lib/python3.10/site-packages/ocrmypdf/subprocess/__init__.py
/usr/lib/python3.10/site-packages/ocrmypdf/subprocess/__pycache__
/usr/lib/python3.10/site-packages/ocrmypdf/subprocess/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/subprocess/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/subprocess/__pycache__/_windows.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/subprocess/__pycache__/_windows.cpython-310.pyc
/usr/lib/python3.10/site-packages/ocrmypdf/subprocess/_windows.py
/usr/share/bash-completion/completions/ocrmypdf
/usr/share/doc/ocrmypdf
/usr/share/doc/ocrmypdf/README.md
/usr/share/fish
/usr/share/fish/vendor_completions.d
/usr/share/fish/vendor_completions.d/ocrmypdf.fish
/usr/share/licenses/ocrmypdf
/usr/share/licenses/ocrmypdf/LICENSE

References

Summary

In this tutorial we learn how to install ocrmypdf on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).