How To Install evince on Ubuntu 22.04

In this tutorial we learn how to install evince on Ubuntu 22.04. evince is Document (PostScript, PDF) viewer

Introduction

In this tutorial we learn how to install evince on Ubuntu 22.04.

What is evince

evince is:

Evince is a simple multi-page document viewer. It can display and print PostScript (PS), Encapsulated PostScript (EPS), DjVu, DVI, Portable Document Format (PDF) and XML Paper Specification (XPS) files. When supported by the document, it also allows searching for text, copying text to the clipboard, hypertext navigation, and table-of-contents bookmarks.

There are three methods to install evince on Ubuntu 22.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install evince Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install evince using apt-get by running the following command:

sudo apt-get -y install evince

Install evince Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install evince using apt by running the following command:

sudo apt -y install evince

Install evince Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install evince using aptitude by running the following command:

sudo aptitude -y install evince

How To Uninstall evince on Ubuntu 22.04

To uninstall only the evince package we can use the following command:

sudo apt-get remove evince

Uninstall evince And Its Dependencies

To uninstall evince and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:

sudo apt-get -y autoremove evince

Remove evince Configurations and Data

To remove evince configuration and data from Ubuntu 22.04 we can use the following command:

sudo apt-get -y purge evince

Remove evince configuration, data, and all of its dependencies

We can use the following command to remove evince configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge evince

References

Summary

In this tutorial we learn how to install evince package on Ubuntu 22.04 using different package management tools: apt, apt-get and aptitude.