How To Install mupdf on Fedora 34

mupdf is A lightweight PDF viewer and toolkit

Introduction

In this tutorial we learn how to install mupdf on Fedora 34.

What is mupdf

MuPDF is a lightweight PDF viewer and toolkit written in portable C. The renderer in MuPDF is tailored for high quality anti-aliased graphics. MuPDF renders text with metrics and spacing accurate to within fractions of a pixel for the highest fidelity in reproducing the look of a printed page on screen. MuPDF has a small footprint. A binary that includes the standard Roman fonts is only one megabyte. A build with full CJK support (including an Asian font) is approximately five megabytes. MuPDF has support for all non-interactive PDF 1.7 features, and the toolkit provides a simple API for accessing the internal structures of the PDF document. Example code for navigating interactive links and bookmarks, encrypting PDF files, extracting fonts, images, and searchable text, and rendering pages to image files is provided.

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

Install mupdf on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install mupdf

Install mupdf on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo yum -y install mupdf

How To Uninstall mupdf on Fedora 34

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

sudo dnf remove mupdf

mupdf Package Contents on Fedora 34

/usr/bin/mupdf
/usr/bin/mupdf-gl
/usr/bin/mupdf-x11
/usr/bin/mupdf-x11-curl
/usr/bin/muraster
/usr/bin/mutool
/usr/lib/.build-id
/usr/lib/.build-id/29
/usr/lib/.build-id/29/39400263a51759475fa749b54ba08782499463
/usr/lib/.build-id/2d
/usr/lib/.build-id/2d/fe551d3305dc416c64ef05037a45b632c0cabe
/usr/lib/.build-id/3c
/usr/lib/.build-id/3c/974517350120db0f057d56ec038ee01e14945d
/usr/lib/.build-id/b8
/usr/lib/.build-id/b8/33f160bd78e9f925cb9a2575ac9d2eb990d326
/usr/lib/.build-id/fe
/usr/lib/.build-id/fe/22639fe14d3df59887f279756f64f274fdde78
/usr/share/applications/mupdf-gl.desktop
/usr/share/applications/mupdf.desktop
/usr/share/doc/mupdf
/usr/share/doc/mupdf/CHANGES
/usr/share/doc/mupdf/README
/usr/share/doc/mupdf/android-sdk.html
/usr/share/doc/mupdf/api
/usr/share/doc/mupdf/api/changes.html
/usr/share/doc/mupdf/api/core.html
/usr/share/doc/mupdf/api/graphics.html
/usr/share/doc/mupdf/api/index.html
/usr/share/doc/mupdf/api/io.html
/usr/share/doc/mupdf/artifex-logo.png
/usr/share/doc/mupdf/building.html
/usr/share/doc/mupdf/coding-overview.html
/usr/share/doc/mupdf/coding-progressive.html
/usr/share/doc/mupdf/coding-style.html
/usr/share/doc/mupdf/ecosystem.dot
/usr/share/doc/mupdf/ecosystem.html
/usr/share/doc/mupdf/ecosystem.png
/usr/share/doc/mupdf/examples
/usr/share/doc/mupdf/examples/bbox-device.js
/usr/share/doc/mupdf/examples/create-thumbnail.js
/usr/share/doc/mupdf/examples/draw-device.js
/usr/share/doc/mupdf/examples/draw-document.js
/usr/share/doc/mupdf/examples/example.c
/usr/share/doc/mupdf/examples/fix-s22pdf.js
/usr/share/doc/mupdf/examples/jpx-to-pdf.js
/usr/share/doc/mupdf/examples/multi-threaded.c
/usr/share/doc/mupdf/examples/pdf-create-lowlevel.js
/usr/share/doc/mupdf/examples/pdf-create.js
/usr/share/doc/mupdf/examples/pdf-dejpx.js
/usr/share/doc/mupdf/examples/pdf-extract-rich-media.js
/usr/share/doc/mupdf/examples/pdf-merge.js
/usr/share/doc/mupdf/examples/pdf-portfolio.js
/usr/share/doc/mupdf/examples/pdf-trace.js
/usr/share/doc/mupdf/examples/trace-device.js
/usr/share/doc/mupdf/index.html
/usr/share/doc/mupdf/logo
/usr/share/doc/mupdf/logo/mupdf-icon.png
/usr/share/doc/mupdf/logo/mupdf-logo.svg
/usr/share/doc/mupdf/logo/mupdf-simplified-logo.png
/usr/share/doc/mupdf/logo/mupdf-simplified-logo.xcf.bz2
/usr/share/doc/mupdf/logo/mupdf.png
/usr/share/doc/mupdf/logo/mupdf.xpm
/usr/share/doc/mupdf/man
/usr/share/doc/mupdf/man/mupdf.1
/usr/share/doc/mupdf/man/mutool.1
/usr/share/doc/mupdf/manual-mupdf-gl.html
/usr/share/doc/mupdf/manual-mutool-clean.html
/usr/share/doc/mupdf/manual-mutool-convert.html
/usr/share/doc/mupdf/manual-mutool-create.html
/usr/share/doc/mupdf/manual-mutool-draw.html
/usr/share/doc/mupdf/manual-mutool-extract.html
/usr/share/doc/mupdf/manual-mutool-merge.html
/usr/share/doc/mupdf/manual-mutool-run.html
/usr/share/doc/mupdf/manual-mutool-show.html
/usr/share/doc/mupdf/manual-mutool-trace.html
/usr/share/doc/mupdf/style.css
/usr/share/doc/mupdf/template.html
/usr/share/doc/mupdf/thirdparty.html
/usr/share/icons/hicolor/scalable/apps/mupdf-gl.svg
/usr/share/icons/hicolor/scalable/apps/mupdf.svg
/usr/share/licenses/mupdf
/usr/share/licenses/mupdf/COPYING
/usr/share/man/man1/mupdf.1.gz
/usr/share/man/man1/mutool.1.gz

References

Summary

In this tutorial we learn how to install mupdf on Fedora 34 using yum and dnf.