How to Install and Uninstall pdf-viewer Ubuntu 22.04

Updated: November 1, 2022

This is a virtual package. See the Debian policy for a definition of virtual packages. In this tutorial, I will show you ways to install pdf-viewer Ubuntu 22.04.

Requirements to install

  • OS: Ubuntu 22.04 or older versions with more than 2GB RAM
  • Privileges: Make sure you are able to execute sudo commands.

Prerequisites to install pdf-viewer on Ubuntu 22.04

Install pdf-viewer Ubuntu 22.04

pdf-viewer 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 pdf-viewer using APT

This is one of the most popular methods for installing Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these steps to install pdf-viewer 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. Opening the terminal and executing this Linux command:

sudo apt -y update

Step 2: Start the package installation on Ubuntu 22.04. You can now install pdf-viewer Ubuntu by executing this command in the terminal.

sudo apt install pdf-viewer

Install pdf-viewer using Aptitude

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

sudo apt-get -y install aptitude

After that, you can now install pdf-viewer, just following these steps:

Step 1: You must update the APT package repository cache before attempting to install, update, or remove any packages. Update the APT database to download new packages from Ubuntu. Launch the terminal and enter the following Linux command:

sudo apt -y update

Step 2: Install the package on Ubuntu 22.04. After updating, you can install pdf-viewer Ubuntu by pasting this command into the terminal and executing it.

sudo aptitude install pdf-viewer

Uninstall pdf-viewer 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 pdf-viewer.

This command can be used to uninstall pdf-viewer from Ubuntu 22.04 if it was installed using APT or Aptitude.

sudo apt remove --auto-remove pdf-viewer

If you want to uninstall pdf-viewer and remove its data and dependencies, you can also run the following command:

sudo apt autoremove --purge pdf-viewer

Conclusion

In this tutorial, I showed you ways to install pdf-viewer on Ubuntu 22.04 and ways to uninstall pdf-viewer too. Please do not hesitate to contact me if you require assistance. I’m delighted to respond.