How To Install php-pecl-lzf on Fedora 36

In this tutorial we learn how to install php-pecl-lzf in Fedora 36. php-pecl-lzf is Extension to handle LZF de/compression

Introduction

In this tutorial we learn how to install php-pecl-lzf on Fedora 36.

What is php-pecl-lzf

This extension provides LZF compression and decompression using the liblzf library. LZF is a very fast compression algorithm, ideal for saving space with a slight speed cost.

We can use yum or dnf to install php-pecl-lzf on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install php-pecl-lzf.

Install php-pecl-lzf on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install php-pecl-lzf using dnf by running the following command:

sudo dnf -y install php-pecl-lzf

Install php-pecl-lzf on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install php-pecl-lzf using yum by running the following command:

sudo yum -y install php-pecl-lzf

How To Uninstall php-pecl-lzf on Fedora 36

To uninstall only the php-pecl-lzf package we can use the following command:

sudo dnf remove php-pecl-lzf

php-pecl-lzf Package Contents on Fedora 36

/etc/php.d/40-lzf.ini
/usr/lib/.build-id
/usr/lib/.build-id/62
/usr/lib/.build-id/62/4de487da24c16fb052e6fd38894055eb2183ba
/usr/lib64/php/modules/lzf.so
/usr/share/doc/pecl/LZF
/usr/share/doc/pecl/LZF/CREDITS
/usr/share/doc/pecl/LZF/examples
/usr/share/doc/pecl/LZF/examples/lzf.php
/usr/share/licenses/php-pecl-lzf
/usr/share/licenses/php-pecl-lzf/LICENSE
/var/lib/php/peclxml/php-pecl-lzf.xml

References

Summary

In this tutorial we learn how to install php-pecl-lzf on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).