How To Install libpsl on Rocky Linux 8

In this tutorial we learn how to install libpsl on Rocky Linux 8. libpsl is C library for the Publix Suffix List

Introduction

In this tutorial we learn how to install libpsl on Rocky Linux 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 Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install libpsl.

Install libpsl on Rocky Linux 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 Rocky Linux 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 Rocky Linux 8

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

sudo dnf remove libpsl

libpsl Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/51
/usr/lib/.build-id/51/daaa728c3627d41bc8acaa33c29b83e8696c3f
/usr/lib/libpsl.so.5
/usr/lib/libpsl.so.5.3.1
/usr/share/licenses/libpsl
/usr/share/licenses/libpsl/COPYING
/usr/lib/.build-id
/usr/lib/.build-id/ad
/usr/lib/.build-id/ad/d3b992d60e5da6355e29db048ff3fe19dda374
/usr/lib64/libpsl.so.5
/usr/lib64/libpsl.so.5.3.1
/usr/share/licenses/libpsl
/usr/share/licenses/libpsl/COPYING

References

Summary

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