How to Install or Uninstall okular Ubuntu 22.04

Updated: August 28, 2022

Okular is a universal document viewer with support for advanced document features, such as annotations, forms, and embedded files. In this guide, I will show you how to install okular on Ubuntu 22.04.

Prerequisites to install

  • Operating system: Ubuntu 22.04 or older Ubuntu versions
  • Privileges: Ascertain that you are able to execute sudo commands.

Prerequisites to install okular on Ubuntu 22.04

Install okular Ubuntu 22.04

okular is one of the popular ways on Ubuntu now so that this tutorial will show you how to install it in various ways. Choose the one that you think is easy and you can follow.

Install okular using APT

This is a popular method for installing Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these steps to install okular on your Ubuntu.

Step 1: The APT package repository cache needs to be updated before you try to install, update, or remove any packages. Update the APT database to download new packages from Ubuntu. Launching the terminal and entering the following Linux command:

sudo apt -y update

Step 2: Start installing the packages on Ubuntu 22.04. After updating the system, you can install okular Ubuntu by executing this command in the terminal.

sudo apt install okular

Install okular using Aptitude

Aptitude allows users to view a list of available packages and manage package installation, upgrade, and removal. If you haven’t already installed it on Ubuntu, run this command to do so.

sudo apt-get -y install aptitude

After installing, you can now install okular by following these steps:

Step 1: Update the APT database to download new packages from Ubuntu. Launching the terminal and entering the following Linux command:

sudo apt update

Step 2: Start installing the packages on Ubuntu 22.04. After updating, you can install okular Ubuntu by executing this command in the terminal.

sudo aptitude -y install okular

Install okular using Snap

Snap is a software package and deployment system that uses self-contained packages, or snaps, to deliver software to users. As a result, Snap allows you to install okular easily. Adding this command to the terminal and running it directly.

sudo snap install okular

Install okular from Ubuntu Software Center

If you use Ubuntu, the Ubuntu Software Center should be your next choice, because it provides many applications, including okular. You can follow these steps:

Step 1: Open the Software Center from Applications menu

You must use the Super + A key combination. It will display the application menu, where you can see the installed applications on your system and search for Ubuntu Software and open it.

Step 2: Search for okular

After Ubuntu Software Center appears, you need to look for okular by typing its name into the search box and choose the first one in the result lists. After that, you can now install okular by clicking the Install button.

Install okular from Software Center on Ubuntu 22.04

Uninstall okular on Ubuntu 22.04

Have you ever considered how challenging it might be to uninstall an application from Ubuntu? You’re wrong, anyone can easily uninstall any program, not just a okular.

You can uninstall okular on Ubuntu by running this command if you installed it using APT or Aptitude.

sudo apt remove --auto-remove okular

If you want to uninstall okular and delete its data and dependencies, you can also run the following command:

sudo apt autoremove --purge okular

If you installed okular using Snap, you could follow this step:

sudo snap remove okular

Summary

In this guide, I showed you ways to install okular on Ubuntu 22.04 and some ways to uninstall okular too. If you need any help, don’t hesitate to contact me. I’m very glad to answer them.