How To Install python3-PyPDF2 on Fedora 36

In this tutorial we learn how to install python3-PyPDF2 in Fedora 36. python3-PyPDF2 is Python PDF toolkit and library

Introduction

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

What is python3-PyPDF2

A pure Python library built as a PDF toolkit. It is capable of - extracting document information (title, author, …), - splitting documents page by page, - merging documents page by page, - cropping pages, - merging multiple pages into a single page, - encryption and decryption of PDF files. By being pure Python, it should run on any Python platform without any dependencies on external libraries. It can also work entirely on StringIO objects rather than file streams, allowing for PDF manipulation in memory. It is therefore a useful tool for websites that manage or manipulate PDFs.

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

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

sudo dnf -y install python3-PyPDF2

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

sudo yum -y install python3-PyPDF2

How To Uninstall python3-PyPDF2 on Fedora 36

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

sudo dnf remove python3-PyPDF2

python3-PyPDF2 Package Contents on Fedora 36

/usr/lib/python3.10/site-packages/PyPDF2
/usr/lib/python3.10/site-packages/PyPDF2-1.26.0-py3.10.egg-info
/usr/lib/python3.10/site-packages/PyPDF2/__init__.py
/usr/lib/python3.10/site-packages/PyPDF2/__pycache__
/usr/lib/python3.10/site-packages/PyPDF2/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/PyPDF2/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/PyPDF2/__pycache__/_version.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/PyPDF2/__pycache__/_version.cpython-310.pyc
/usr/lib/python3.10/site-packages/PyPDF2/__pycache__/filters.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/PyPDF2/__pycache__/filters.cpython-310.pyc
/usr/lib/python3.10/site-packages/PyPDF2/__pycache__/generic.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/PyPDF2/__pycache__/generic.cpython-310.pyc
/usr/lib/python3.10/site-packages/PyPDF2/__pycache__/merger.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/PyPDF2/__pycache__/merger.cpython-310.pyc
/usr/lib/python3.10/site-packages/PyPDF2/__pycache__/pagerange.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/PyPDF2/__pycache__/pagerange.cpython-310.pyc
/usr/lib/python3.10/site-packages/PyPDF2/__pycache__/pdf.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/PyPDF2/__pycache__/pdf.cpython-310.pyc
/usr/lib/python3.10/site-packages/PyPDF2/__pycache__/utils.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/PyPDF2/__pycache__/utils.cpython-310.pyc
/usr/lib/python3.10/site-packages/PyPDF2/__pycache__/xmp.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/PyPDF2/__pycache__/xmp.cpython-310.pyc
/usr/lib/python3.10/site-packages/PyPDF2/_version.py
/usr/lib/python3.10/site-packages/PyPDF2/filters.py
/usr/lib/python3.10/site-packages/PyPDF2/generic.py
/usr/lib/python3.10/site-packages/PyPDF2/merger.py
/usr/lib/python3.10/site-packages/PyPDF2/pagerange.py
/usr/lib/python3.10/site-packages/PyPDF2/pdf.py
/usr/lib/python3.10/site-packages/PyPDF2/utils.py
/usr/lib/python3.10/site-packages/PyPDF2/xmp.py
/usr/share/licenses/python3-PyPDF2
/usr/share/licenses/python3-PyPDF2/LICENSE

References

Summary

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