How To Install php-icewind-smb2 on Fedora 36

In this tutorial we learn how to install php-icewind-smb2 in Fedora 36. php-icewind-smb2 is php wrapper for smbclient and libsmbclient-php

Introduction

In this tutorial we learn how to install php-icewind-smb2 on Fedora 36.

What is php-icewind-smb2

PHP wrapper for smbclient and libsmbclient-php * Reuses a single smbclient instance for multiple requests * Doesn’t leak the password to the process list * Simple 1-on-1 mapping of SMB commands * A stream-based api to remove the need for temporary files * Support for using libsmbclient directly trough libsmbclient-php Autoloader

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

Install php-icewind-smb2 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-icewind-smb2 using dnf by running the following command:

sudo dnf -y install php-icewind-smb2

Install php-icewind-smb2 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-icewind-smb2 using yum by running the following command:

sudo yum -y install php-icewind-smb2

How To Uninstall php-icewind-smb2 on Fedora 36

To uninstall only the php-icewind-smb2 package we can use the following command:

sudo dnf remove php-icewind-smb2

php-icewind-smb2 Package Contents on Fedora 36

/usr/share/doc/php-icewind-smb2
/usr/share/doc/php-icewind-smb2/README.md
/usr/share/doc/php-icewind-smb2/composer.json
/usr/share/doc/php-icewind-smb2/example.php
/usr/share/licenses/php-icewind-smb2
/usr/share/licenses/php-icewind-smb2/LICENSE.txt
/usr/share/php/Icewind/SMB2
/usr/share/php/Icewind/SMB2/AbstractShare.php
/usr/share/php/Icewind/SMB2/Change.php
/usr/share/php/Icewind/SMB2/Connection.php
/usr/share/php/Icewind/SMB2/ErrorCodes.php
/usr/share/php/Icewind/SMB2/Exception
/usr/share/php/Icewind/SMB2/Exception/AccessDeniedException.php
/usr/share/php/Icewind/SMB2/Exception/AlreadyExistsException.php
/usr/share/php/Icewind/SMB2/Exception/AuthenticationException.php
/usr/share/php/Icewind/SMB2/Exception/ConnectException.php
/usr/share/php/Icewind/SMB2/Exception/ConnectionException.php
/usr/share/php/Icewind/SMB2/Exception/ConnectionRefusedException.php
/usr/share/php/Icewind/SMB2/Exception/DependencyException.php
/usr/share/php/Icewind/SMB2/Exception/Exception.php
/usr/share/php/Icewind/SMB2/Exception/FileInUseException.php
/usr/share/php/Icewind/SMB2/Exception/ForbiddenException.php
/usr/share/php/Icewind/SMB2/Exception/HostDownException.php
/usr/share/php/Icewind/SMB2/Exception/InvalidArgumentException.php
/usr/share/php/Icewind/SMB2/Exception/InvalidHostException.php
/usr/share/php/Icewind/SMB2/Exception/InvalidParameterException.php
/usr/share/php/Icewind/SMB2/Exception/InvalidPathException.php
/usr/share/php/Icewind/SMB2/Exception/InvalidRequestException.php
/usr/share/php/Icewind/SMB2/Exception/InvalidResourceException.php
/usr/share/php/Icewind/SMB2/Exception/InvalidTypeException.php
/usr/share/php/Icewind/SMB2/Exception/NoLoginServerException.php
/usr/share/php/Icewind/SMB2/Exception/NoRouteToHostException.php
/usr/share/php/Icewind/SMB2/Exception/NotEmptyException.php
/usr/share/php/Icewind/SMB2/Exception/NotFoundException.php
/usr/share/php/Icewind/SMB2/Exception/OutOfSpaceException.php
/usr/share/php/Icewind/SMB2/Exception/RevisionMismatchException.php
/usr/share/php/Icewind/SMB2/Exception/TimedOutException.php
/usr/share/php/Icewind/SMB2/FileInfo.php
/usr/share/php/Icewind/SMB2/IFileInfo.php
/usr/share/php/Icewind/SMB2/INotifyHandler.php
/usr/share/php/Icewind/SMB2/IShare.php
/usr/share/php/Icewind/SMB2/NativeFileInfo.php
/usr/share/php/Icewind/SMB2/NativeReadStream.php
/usr/share/php/Icewind/SMB2/NativeServer.php
/usr/share/php/Icewind/SMB2/NativeShare.php
/usr/share/php/Icewind/SMB2/NativeState.php
/usr/share/php/Icewind/SMB2/NativeStream.php
/usr/share/php/Icewind/SMB2/NativeWriteStream.php
/usr/share/php/Icewind/SMB2/NotifyHandler.php
/usr/share/php/Icewind/SMB2/Parser.php
/usr/share/php/Icewind/SMB2/RawConnection.php
/usr/share/php/Icewind/SMB2/Server.php
/usr/share/php/Icewind/SMB2/Share.php
/usr/share/php/Icewind/SMB2/System.php
/usr/share/php/Icewind/SMB2/TimeZoneProvider.php
/usr/share/php/Icewind/SMB2/autoload.php

References

Summary

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