Guides 11792 Published by

The guide walks users through installing KDE’s Okular PDF viewer on Fedora by first ensuring the system is fully updated with `sudo dnf update -y`, which helps avoid dependency problems that can arise from an older base RPM. After updating, it recommends enabling the KDE desktop group using `sudo dnf install @kde-desktop` so all necessary Qt libraries are available, and then installing Okular itself via `sudo dnf install okular`. The instructions also cover handling potential dependency errors by adding the fedora-modularity repository or allowing DNF to erase conflicting packages, and they suggest installing RPM Fusion for extra codecs if users need to view PDFs with rare fonts or DRM protection. Finally, the article reminds readers that launching Okular is simple—just type its name in a terminal—and offers commands to uninstall the program cleanly when desired, all while keeping the overall tone friendly and straightforward.



How to Install Okular on Fedora Linux

If you’ve been lugging around a PDF reader that only shows white pages after the last update, this is for you. I’ll walk through getting Okular—KDE’s all‑in‑one document viewer—on your Fedora system without any extra fluff.

1. Make sure you’re on the latest Fedora

Fedora ships with DNF as its package manager, so start by updating everything:

sudo dnf update -y

Because an old base RPM can trip up dependency checks later on. I once had a broken Okular install because my system was stuck at F34 while the repository expected F35.

2. Enable the “KDE” group (if you haven’t already)

Fedora’s default repos include KDE packages, but you need to enable the group so DNF knows where to look:

sudo dnf install @kde-desktop

This pulls in a bunch of Qt libraries that Okular relies on. If you skip this, the next step will fail with “Missing dependencies: libQt5*”.

3. Install Okular

Now the heavy lifting:

sudo dnf install okular

DNF will resolve all dependencies and pull in okular-pdf. When prompted to confirm, say yes.

If you run into a dependency error like “Could not resolve dependency: libQt5X11*”, add the fedora-modularity repo or run:

sudo dnf install okular --allowerasing

This tells DNF to replace conflicting packages if necessary—useful when upgrading from an older Fedora release.

4. Launch and test

Type okular in a terminal or click the app icon. Open any PDF, especially one with annotations or embedded fonts, and see it render correctly. I had a colleague who was trying to view a government report with complex vector graphics; Okular handled it without pulling up an error dialog.

5. Optional: Add extra codecs

If you want to read PDFs that embed rare fonts or DRM‑protected content, install the RPM Fusion free repo first:

sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm

Then re-run the Okular install. This step is usually unnecessary for standard PDFs but handy if you deal with multimedia‑rich documents.

6. Keep it tidy

If you ever need to uninstall:

sudo dnf remove okular

Fedora cleans up all dependencies that are no longer needed, so your system stays lean.

That’s the whole story—no extra plugins, no fiddling with Flatpak or Snap. Okular is ready in under five minutes and will happily open anything from simple invoices to 3‑D PDF models.