How To Install libssh on Fedora 34

libssh is A library implementing the SSH protocol A library implementing the SSH protocol

Introduction

In this tutorial we learn how to install libssh on Fedora 34.

What is libssh

The ssh library was designed to be used by programmers needing a working SSH implementation by the mean of a library. The complete control of the client is made by the programmer. With libssh, you can remotely execute programs, transfer files, use a secure and transparent tunnel for your remote programs. With its Secure FTP implementation, you can play with remote files easily, without third-party programs others than libcrypto (from openssl). libssh 0.9.5 2.fc34 i686 224 k libssh-0.9.5-2.fc34.src.rpm fedora A library implementing the SSH protocol http LGPLv2+ The ssh library was designed to be used by programmers needing a working SSH implementation by the mean of a library. The complete control of the client is made by the programmer. With libssh, you can remotely execute programs, transfer files, use a secure and transparent tunnel for your remote programs. With its Secure FTP implementation, you can play with remote files easily, without third-party programs others than libcrypto (from openssl).

We can use yum or dnf to install libssh on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install libssh.

Install libssh on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install libssh using dnf by running the following command:

sudo dnf -y install libssh

Install libssh on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install libssh using yum by running the following command:

sudo yum -y install libssh

How To Uninstall libssh on Fedora 34

To uninstall only the libssh package we can use the following command:

sudo dnf remove libssh

libssh Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/26
/usr/lib/.build-id/26/dea16d75766463c6e4ad886beb0a6a8867cbab
/usr/lib/libssh.so.4
/usr/lib/libssh.so.4.8.6
/usr/lib/libssh_threads.so.4
/usr/lib/libssh_threads.so.4.8.6
/usr/share/doc/libssh
/usr/share/doc/libssh/AUTHORS
/usr/share/doc/libssh/BSD
/usr/share/doc/libssh/ChangeLog
/usr/share/doc/libssh/README
/usr/share/licenses/libssh
/usr/share/licenses/libssh/COPYING
/usr/lib/.build-id
/usr/lib/.build-id/6d
/usr/lib/.build-id/6d/8f0a23290b3f888a66456f4e7d910f84165dcd
/usr/lib64/libssh.so.4
/usr/lib64/libssh.so.4.8.6
/usr/lib64/libssh_threads.so.4
/usr/lib64/libssh_threads.so.4.8.6
/usr/share/doc/libssh
/usr/share/doc/libssh/AUTHORS
/usr/share/doc/libssh/BSD
/usr/share/doc/libssh/ChangeLog
/usr/share/doc/libssh/README
/usr/share/licenses/libssh
/usr/share/licenses/libssh/COPYING

References

Summary

In this tutorial we learn how to install libssh on Fedora 34 using yum and dnf.