Ways to Install or Uninstall pdf.js-common on Ubuntu 22.04

Updated: October 8, 2022

PDF.js is a general-purpose, web standards-based platform for parsing and rendering PDFs. In this tutorial, I will show you how to install pdf.js-common on Ubuntu 22.04.

Requirements to install

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

Prerequisites to install pdf.js-common on Ubuntu 22.04

Install pdf.js-common Ubuntu 22.04

pdf.js-common is one of the popular ways on Ubuntu now so that this tutorial will show you some ways to install it. Choose the one you believe is simple and easy to follow.

Install pdf.js-common using APT

This is a popular method for installing Ubuntu packages since it’s simple to understand, even if you’re new to Linux. Following these instructions to install pdf.js-common on your Ubuntu 22.04.

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. Opening the terminal and executing this Linux command:

sudo apt -y update

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

sudo apt install pdf.js-common

Install pdf.js-common using Aptitude

Users can manage their installation, upgrade, and removal of packages with Aptitude and view a list of the packages that are currently available. If you haven’t already installed it on Ubuntu, run this command to do so.

sudo apt install aptitude

Then, you can now install pdf.js-common, just following these steps:

Step 1: Update the APT database to fetch new packages from Ubuntu. Opening the terminal and executing the following Linux command:

sudo apt-get -y update

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

sudo aptitude -y install pdf.js-common

Uninstall pdf.js-common on Ubuntu 22.04

Have you ever considered how difficult it is to uninstall an application from Ubuntu? You are mistaken; anyone, not just package administrators, can easily uninstall any program.

You can uninstall pdf.js-common on Ubuntu by running this command if you installed it using APT or Aptitude.

sudo apt remove --auto-remove pdf.js-common

You can also execute this command if you want to uninstall pdf.js-common and remove its data and dependencies:

sudo apt autoremove --purge pdf.js-common

Ending

In this guide, I showed you ways to install pdf.js-common on Ubuntu 22.04 and some ways to uninstall pdf.js-common too. Please do not hesitate to contact me if you require any assistance. I’m delighted to respond to them.