Ways to Uninstall and Install psl Ubuntu 22.04

Updated: September 21, 2022

Libpsl allows checking domains against the Public Suffix List. It can be used to avoid privacy-leaking ‘super-cookies’, ‘super domain’ certificates, for domain highlighting purposes sorting domain lists by site and more. I will show you how to install psl on Ubuntu 22.04 in this tutorial.

Software Requirement

  • OS: psl needs Ubuntu 22.04 to work
  • Privileges: Make sure you are able to execute sudo commands.

Prerequisites to install psl on Ubuntu 22.04

Install psl Ubuntu 22.04

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

Install psl using APT

This is one of the popular ways to install any Ubuntu packages because it is simple to understand, even if you are a Linux novice. Following these steps to install psl on your Ubuntu 22.04.

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

sudo apt-get update

Step 2: Start installing the packages on Ubuntu 22.04. You can now install psl Ubuntu by executing this command in the terminal.

sudo apt -y install psl

Install psl 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. You must run this command to install it if you haven’t already done so on Ubuntu.

sudo apt-get install aptitude

Then, you can now install psl by 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. Opening the terminal and executing this Linux command:

sudo apt update

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

sudo aptitude install psl

Uninstall psl 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.

If you installed psl using APT or Aptitude, you could uninstall psl on Ubuntu by following this step:

sudo apt remove --auto-remove psl

You can also execute this command if you want to uninstall psl and remove its data and dependencies:

sudo apt autoremove --purge psl

Summary

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