How To Install libpsl on CentOS 7
Introduction
In this tutorial we learn how to install libpsl
on CentOS 7.
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 CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install libpsl.
Install libpsl on CentOS 7 Using yum
Update yum database with yum
using the following command.
sudo yum makecache
After updating yum database, We can install libpsl
using yum
by running the following command:
sudo yum -y install libpsl
Install libpsl on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
sudo dnf makecache
After updating yum database, We can install libpsl
using dnf
by running the following command:
sudo dnf -y install libpsl
How To Uninstall libpsl on CentOS 7
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 CentOS 7 using yum
and dnf
.