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.