How To Install php-pecl-zip on Rocky Linux 8
Introduction
In this tutorial we learn how to install php-pecl-zip
on Rocky Linux 8.
What is php-pecl-zip
Zip is an extension to create and read zip files.
We can use yum
or dnf
to install php-pecl-zip
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install php-pecl-zip.
Install php-pecl-zip on Rocky Linux 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install php-pecl-zip
using dnf
by running the following command:
sudo dnf -y install php-pecl-zip
Install php-pecl-zip on Rocky Linux 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install php-pecl-zip
using yum
by running the following command:
sudo yum -y install php-pecl-zip
How To Uninstall php-pecl-zip on Rocky Linux 8
To uninstall only the php-pecl-zip
package we can use the following command:
sudo dnf remove php-pecl-zip
php-pecl-zip Package Contents on Rocky Linux 8
/etc/php.d/40-zip.ini
/usr/lib/.build-id
/usr/lib/.build-id/fc
/usr/lib/.build-id/fc/62a72df28c58a86f0fc9c53265eec6dc72f97f
/usr/lib64/php/modules/zip.so
/usr/share/doc/pecl/zip
/usr/share/doc/pecl/zip/CREDITS
/usr/share/doc/pecl/zip/examples
/usr/share/doc/pecl/zip/examples/addglob.php
/usr/share/doc/pecl/zip/examples/addpattern.php
/usr/share/doc/pecl/zip/examples/comment.php
/usr/share/doc/pecl/zip/examples/create.php
/usr/share/doc/pecl/zip/examples/dir.php
/usr/share/doc/pecl/zip/examples/encryption.php
/usr/share/doc/pecl/zip/examples/extract.php
/usr/share/doc/pecl/zip/examples/extractAll.php
/usr/share/doc/pecl/zip/examples/fopen.php
/usr/share/doc/pecl/zip/examples/get_set_comments.php
/usr/share/doc/pecl/zip/examples/odt.php
/usr/share/doc/pecl/zip/examples/oldapi.php
/usr/share/doc/pecl/zip/examples/set_compression.php
/usr/share/doc/pecl/zip/examples/test.zip
/usr/share/doc/pecl/zip/examples/test1.zip
/usr/share/doc/pecl/zip/examples/test_with_comment.zip
/usr/share/doc/pecl/zip/examples/too.php
/usr/share/licenses/php-pecl-zip
/usr/share/licenses/php-pecl-zip/LICENSE
/var/lib/php/peclxml/php-pecl-zip.xml
References
Summary
In this tutorial we learn how to install php-pecl-zip
on Rocky Linux 8 using yum and dnf.