How To Install php-pecl-ssh2 on Fedora 36
Introduction
In this tutorial we learn how to install php-pecl-ssh2
on Fedora 36.
What is php-pecl-ssh2
Bindings to the libssh2 library which provide access to resources (shell, remote exec, tunneling, file transfer) on a remote machine using a secure cryptographic transport. Documentation
We can use yum
or dnf
to install php-pecl-ssh2
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install php-pecl-ssh2.
Install php-pecl-ssh2 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-ssh2
using dnf
by running the following command:
sudo dnf -y install php-pecl-ssh2
Install php-pecl-ssh2 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-ssh2
using yum
by running the following command:
sudo yum -y install php-pecl-ssh2
How To Uninstall php-pecl-ssh2 on Fedora 36
To uninstall only the php-pecl-ssh2
package we can use the following command:
sudo dnf remove php-pecl-ssh2
php-pecl-ssh2 Package Contents on Fedora 36
/etc/php-zts.d/40-ssh2.ini
/etc/php.d/40-ssh2.ini
/usr/lib/.build-id
/usr/lib/.build-id/cb
/usr/lib/.build-id/cb/4d426db2a26555ba8e226274b5654e9a8e3e85
/usr/lib/.build-id/db
/usr/lib/.build-id/db/f9f7848a0304abd278836ca9409f576a6fe6e6
/usr/lib64/php-zts/modules/ssh2.so
/usr/lib64/php/modules/ssh2.so
/usr/share/doc/pecl/ssh2
/usr/share/doc/pecl/ssh2/README.md
/usr/share/licenses/php-pecl-ssh2
/usr/share/licenses/php-pecl-ssh2/LICENSE
/var/lib/php/peclxml/php-pecl-ssh2.xml
References
Summary
In this tutorial we learn how to install php-pecl-ssh2
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).