How to Install Okular on Linux Mint 21 LTS

Okular is a free and open-source multiplatform document viewer developed by the KDE community. It is based on Qt and KDE Frameworks libraries and is distributed as part of the KDE Applications bundle. Okular was initially developed as a fork of KPDF, and it has since replaced KPDF, KGhostView, KFax, KFaxview, and KDVI in KDE 4.

The application is available for Linux, FreeBSD, macOS, Windows, and Android. Okular has various features that make it suitable for viewing multiple document types, including PDFs, PostScript files, DjVu files, XPS files, comic books, and more. The app also supports annotations and notes, making it ideal for students and researchers who need to take notes on documents. Okular is a versatile document viewer perfect for users who require to view various document types.

In the following tutorial, you will learn to install Okular on Ubuntu 22.04 LTS Jammy Jellyfish using the standard default apt repository or flatpak third-party package manager, with some tips for maintaining or removing Okular in the future.

Update Linux Mint

Before you begin, ensure your system is up-to-date to avoid any conflicts during the installation, and for good practice, use the terminal command as follows.

sudo apt update && sudo apt upgrade -y

Install Okular – APT Method

The first option is to use the default APT repository. This is a stable and secure version and is most recommended to install over any other package manager but can be outdated compared to Flatpaks alternative, usually up-to-date.

First, execute the following apt install command.

sudo apt install okular -y

I suggest using the following method for users seeking a more updated version.

Install Okular – Flatpak Method

The second option is to use the Flatpak package manager, installed on Linux Mint distros by default.

First, re-install Flatpak if you have removed the package manager previously.

sudo apt install flatpak -y

Next, you need to enable Flatpack using the following command in your terminal:

sudo flatpak remote-add --if-not-exists flathub

Ideally, you should reboot at this stage; if you skip this and notice icons not appearing, the reboot will generate the paths required for the future.


Now run the installation using the following flatpak command.

flatpak install flathub org.kde.okular -y

How to Launch Okular

Launching can be done in a few ways now that you have the software installed.

First, you can launch the application immediately by typing the following command in your terminal.


Lastly, Flatpak users can run from the terminal using the following command.

flatpak run org.kde.okular

However, this isn’t practical, and you would use the following path on your desktop to open it.

Taskbar > Show Applications > Okular


How to Install Okular on Linux Mint 21 LTS

Once you open Okular, you will see the first default landing screen, where you can begin to use the document viewer. The settings menu has a few configuration operations to customize the look and function compared to the bare-bones default viewer window.


How to Install Okular on Linux Mint 21 LTS

How to Update/Upgrade Okular

Updates should appear in notifications, but if these fail to show sometimes, it is recommended to check using the terminal regardless of the following commands to check for updates.

APT Method

sudo apt update

Flatpak Method

flatpak update

How to Remove (Uninstall) Okular

Use one of the following commands to suit the original installation method for users who no longer require the application.

APT Remove Method

sudo apt autoremove okular --purge

Note that autoremove will also delete any unused packages from Okular and other leftovers from previous applications. This is usually safe and should be done to keep your system from bloating.

Flatpak Remove Method

flatpak remove  --delete-data org.kde.okular -y

Next, run the following command for any leftover clean-ups required, similar to the autoremove command described for the apt remove example command.

flatpak remove --unused

Comments and Conclusion

If you are looking for a great open-source document viewer that is multiplatform and has many features, Okular should be your go-to choice. It’s been around for a while and continues improving with each release.

Not what you were looking for? Try searching for additional tutorials.

Leave a Comment