How To Install libpsl on AlmaLinux 8

In this tutorial we learn how to install libpsl in AlmaLinux 8. libpsl is C library for the Publix Suffix List

Introduction

In this tutorial we learn how to install libpsl on AlmaLinux 8.

What is libpsl

libpsl is a C library to handle the Public Suffix List. A “public suffix” is a domain name under which Internet users can directly register own names. Browsers and other web clients can use it to - Avoid privacy-leaking “supercookies”; - Avoid privacy-leaking “super domain” certificates; - Domain highlighting parts of the domain in a user interface; - Sorting domain lists by site; Libpsl… - has built-in PSL data for fast access; - allows to load PSL data from files; - checks if a given domain is a “public suffix”; - provides immediate cookie domain verification; - finds the longest public part of a given domain; - finds the shortest private part of a given domain; - works with international domains (UTF-8 and IDNA2008 Punycode); - is thread-safe; - handles IDNA2008 UTS#46;

We can use yum or dnf to install libpsl on AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install libpsl.

Install libpsl on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install libpsl using dnf by running the following command:

sudo dnf -y install libpsl

Install libpsl on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install libpsl using yum by running the following command:

sudo yum -y install libpsl

How To Uninstall libpsl on AlmaLinux 8

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

sudo dnf remove libpsl

References

Summary

In this tutorial we learn how to install libpsl on AlmaLinux 8 using yum and dnf.