How To Install python3-PyMuPDF on Fedora 36

In this tutorial we learn how to install python3-PyMuPDF in Fedora 36. python3-PyMuPDF is Python binding for MuPDF - a lightweight PDF and XPS viewer

Introduction

In this tutorial we learn how to install python3-PyMuPDF on Fedora 36.

What is python3-PyMuPDF

This is PyMuPDF, a Python binding for MuPDF - a lightweight PDF and XPS viewer. MuPDF can access files in PDF, XPS, OpenXPS, epub, comic and fiction book formats, and it is known for its top performance and high rendering quality. With PyMuPDF you therefore can also access files with extensions *.pdf, *.xps, *.oxps, *.epub, *.cbz or *.fb2 from your Python scripts.

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

Install python3-PyMuPDF 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 python3-PyMuPDF using dnf by running the following command:

sudo dnf -y install python3-PyMuPDF

Install python3-PyMuPDF 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 python3-PyMuPDF using yum by running the following command:

sudo yum -y install python3-PyMuPDF

How To Uninstall python3-PyMuPDF on Fedora 36

To uninstall only the python3-PyMuPDF package we can use the following command:

sudo dnf remove python3-PyMuPDF

python3-PyMuPDF Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/95
/usr/lib/.build-id/95/160d1c03cc1167264a0bdd1572c4b9b356cb8f
/usr/lib64/python3.10/site-packages/PyMuPDF-1.19.5-py3.10.egg-info
/usr/lib64/python3.10/site-packages/PyMuPDF-1.19.5-py3.10.egg-info/PKG-INFO
/usr/lib64/python3.10/site-packages/PyMuPDF-1.19.5-py3.10.egg-info/SOURCES.txt
/usr/lib64/python3.10/site-packages/PyMuPDF-1.19.5-py3.10.egg-info/dependency_links.txt
/usr/lib64/python3.10/site-packages/PyMuPDF-1.19.5-py3.10.egg-info/top_level.txt
/usr/lib64/python3.10/site-packages/fitz
/usr/lib64/python3.10/site-packages/fitz/__init__.py
/usr/lib64/python3.10/site-packages/fitz/__main__.py
/usr/lib64/python3.10/site-packages/fitz/__pycache__
/usr/lib64/python3.10/site-packages/fitz/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/fitz/__pycache__/__init__.cpython-310.pyc
/usr/lib64/python3.10/site-packages/fitz/__pycache__/__main__.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/fitz/__pycache__/__main__.cpython-310.pyc
/usr/lib64/python3.10/site-packages/fitz/__pycache__/fitz.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/fitz/__pycache__/fitz.cpython-310.pyc
/usr/lib64/python3.10/site-packages/fitz/__pycache__/utils.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/fitz/__pycache__/utils.cpython-310.pyc
/usr/lib64/python3.10/site-packages/fitz/_fitz.cpython-310-x86_64-linux-gnu.so
/usr/lib64/python3.10/site-packages/fitz/fitz.py
/usr/lib64/python3.10/site-packages/fitz/utils.py
/usr/share/licenses/python3-PyMuPDF
/usr/share/licenses/python3-PyMuPDF/COPYING

References

Summary

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