在Ubuntu上有上面提到的lib:
sudo apt-get install libssh2-php
但是我在 Fedora 上哪里可以找到它?
任何想法?
答案1
Fedora 上的等效软件包名称是php-pecl-ssh2
.这符合 PECL 中包的通常命名约定,即php-pecl-<package name>
.
# dnf info php-pecl-ssh2
Last metadata expiration check: 1:59:21 ago on Sat 21 Jul 2018 10:40:54 AM CDT.
Available Packages
Name : php-pecl-ssh2
Version : 1.1.2
Release : 3.fc28
Arch : x86_64
Size : 51 k
Source : php-pecl-ssh2-1.1.2-3.fc28.src.rpm
Repo : fedora
Summary : Bindings for the libssh2 library
URL : http://pecl.php.net/package/ssh2
License : PHP
Description : 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: http://php.net/ssh2