如何安装 lua-psl Fedora 36

在本教程中,我们学习如何安装 lua-psl Fedora 36. lua-psl 是 Lua 绑定到公共后缀列表库

介绍

在本教程中我们学习如何安装 lua-psl 在 Fedora 36.

什么是 lua-psl

Lua 绑定到 libpsl,这是一个处理公共后缀列表 (PSL) 的 C 库。 PSL 是域列表,其中可能存在超出管理员控制范围的子域。 例如“.com”的管理员不管理“github.com”。

我们可以用 yum 或者 dnf 安装 lua-psl 在 Fedora 36. 在本教程中,我们讨论这两种方法,但您只需选择一种方法来安装 lua-psl。

安装 lua-psl Fedora 36 使用dnf

更新 yum 数据库 dnf 使用以下命令。

sudo dnf makecache --refresh

更新 yum 数据库后,我们可以安装 lua-psl 使用 dnf 通过运行以下命令:

sudo dnf -y install lua-psl

安装 lua-psl Fedora 36 使用 yum

更新 yum 数据库 yum 使用以下命令。

sudo yum makecache --refresh

更新 yum 数据库后,我们可以安装 lua-psl 使用 yum 通过运行以下命令:

sudo yum -y install lua-psl

如何卸载 lua-psl Fedora 36

仅卸载 lua-psl 打包我们可以使用以下命令:

lua-psl 包内容位于 Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/30
/usr/lib/.build-id/30/877fcef2fbd805d555071ab9b37c9f272a704a
/usr/lib64/lua/5.4/psl.so
/usr/share/licenses/lua-psl
/usr/share/licenses/lua-psl/LICENSE

参考

概括

在本教程中我们学习如何安装 lua-psl 在 Fedora 36 使用 yum 和 [dnf]((/fedora/36/dnf/)。