How to Install and Uninstall php-pecl-ssh2.x86_64 Package on Amazon Linux 2

Last updated: January 10,2025

1. Install "php-pecl-ssh2.x86_64" package

Here is a brief guide to show you how to install php-pecl-ssh2.x86_64 on Amazon Linux 2

$ sudo yum makecache $ sudo yum install php-pecl-ssh2.x86_64

2. Uninstall "php-pecl-ssh2.x86_64" package

This tutorial shows how to uninstall php-pecl-ssh2.x86_64 on Amazon Linux 2:

$ sudo yum remove php-pecl-ssh2.x86_64 $ sudo yum autoremove

3. Information about the php-pecl-ssh2.x86_64 package on Amazon Linux 2

Loaded plugins: ovl, priorities
Available Packages
Name : php-pecl-ssh2
Arch : x86_64
Version : 1.2
Release : 1.amzn2
Size : 35 k
Repo : amzn2extra-php7.4/2/x86_64
Summary : Bindings for the libssh2 library
URL : http://pecl.php.net/package/ssh2
License : PHP
Description : Provides bindings to the functions of libssh2 which implements the
: SSH2 protocol. libssh2 is available from http://libssh2.org/
:
: ssh2 1.0 and above is
: PHP 7 only. To install a version that is PHP 5 compatible you can
: run 'pecl install ssh2-0.13'
:
: Note that reaching version 1.0 does NOT indicate we've
: reached a stable release.