How To Install libpsl on Fedora 34

libpsl is C library for the Publix Suffix List C library for the Publix Suffix List

Introduction

In this tutorial we learn how to install libpsl on Fedora 34.

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; libpsl 0.21.1 3.fc34 i686 62 k libpsl-0.21.1-3.fc34.src.rpm fedora C library for the Publix Suffix List https MIT 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 Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install libpsl.

Install libpsl on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install libpsl

Install libpsl on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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 Fedora 34

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

sudo dnf remove libpsl

libpsl Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/0d
/usr/lib/.build-id/0d/b20ce4ab9e274849b8bd235314a77810268d2b
/usr/lib64/libpsl.so.5
/usr/lib64/libpsl.so.5.3.3
/usr/share/licenses/libpsl
/usr/share/licenses/libpsl/COPYING
/usr/lib/.build-id
/usr/lib/.build-id/57
/usr/lib/.build-id/57/4c4ab0301b4a4fd07a83b44b0e6eb564309a48
/usr/lib/libpsl.so.5
/usr/lib/libpsl.so.5.3.3
/usr/share/licenses/libpsl
/usr/share/licenses/libpsl/COPYING

References

Summary

In this tutorial we learn how to install libpsl on Fedora 34 using yum and dnf.