Introduction to libpsl

The libpsl package provides a library for accessing and resolving information from the Public Suffix List (PSL). The PSL is a set of domain names beyond the standard suffixes, such as .com.



Development versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.

Package Information

libpsl Dependencies


libidn2-2.3.7 and libunistring-1.2


GTK-Doc-1.34.0 (for documentation) and Valgrind-3.22.0 (for tests)

Installation of libpsl

Install libpsl by running the following commands:

mkdir build &&
cd    build &&

meson setup --prefix=/usr --buildtype=release &&


To test the results, issue: ninja test.

Now, as the root user:

ninja install

Command Explanations

--buildtype=release: Specify a buildtype suitable for stable releases of the package, as the default may produce unoptimized binaries.


Installed Program: psl
Installed Library:
Installed Directories: None

Short Descriptions


queries the Public Suffix List

contains a library used to access the Public Suffix List