How To Install libgcrypt on Fedora 34

libgcrypt is A general-purpose cryptography library A general-purpose cryptography library

Introduction

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

What is libgcrypt

Libgcrypt is a general purpose crypto library based on the code used in GNU Privacy Guard. This is a development version. libgcrypt 1.9.3 3.fc34 i686 474 k libgcrypt-1.9.3-3.fc34.src.rpm updates A general-purpose cryptography library https LGPLv2+ Libgcrypt is a general purpose crypto library based on the code used in GNU Privacy Guard. This is a development version.

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

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

sudo dnf -y install libgcrypt

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

sudo yum -y install libgcrypt

How To Uninstall libgcrypt on Fedora 34

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

sudo dnf remove libgcrypt

libgcrypt Package Contents on Fedora 34

/etc/gcrypt
/etc/gcrypt/random.conf
/usr/lib/.build-id
/usr/lib/.build-id/12
/usr/lib/.build-id/12/0358ede7a4a003959029b04735d1b654284e41
/usr/lib64/.libgcrypt.so.20.hmac
/usr/lib64/libgcrypt.so.20
/usr/lib64/libgcrypt.so.20.3.2
/usr/share/doc/libgcrypt
/usr/share/doc/libgcrypt/AUTHORS
/usr/share/doc/libgcrypt/NEWS
/usr/share/doc/libgcrypt/THANKS
/usr/share/licenses/libgcrypt
/usr/share/licenses/libgcrypt/COPYING.LIB
/etc/gcrypt
/etc/gcrypt/random.conf
/usr/lib/.build-id
/usr/lib/.build-id/33
/usr/lib/.build-id/33/866b0065ec5cc4c25010d1c63f6f2aba71402a
/usr/lib64/.libgcrypt.so.20.hmac
/usr/lib64/libgcrypt.so.20
/usr/lib64/libgcrypt.so.20.3.3
/usr/share/doc/libgcrypt
/usr/share/doc/libgcrypt/AUTHORS
/usr/share/doc/libgcrypt/NEWS
/usr/share/doc/libgcrypt/THANKS
/usr/share/licenses/libgcrypt
/usr/share/licenses/libgcrypt/COPYING.LIB
/etc/gcrypt
/etc/gcrypt/random.conf
/usr/lib/.build-id
/usr/lib/.build-id/c8
/usr/lib/.build-id/c8/2b614ea49bb58513134740117b6cf9ee98b28c
/usr/lib/.libgcrypt.so.20.hmac
/usr/lib/libgcrypt.so.20
/usr/lib/libgcrypt.so.20.3.3
/usr/share/doc/libgcrypt
/usr/share/doc/libgcrypt/AUTHORS
/usr/share/doc/libgcrypt/NEWS
/usr/share/doc/libgcrypt/THANKS
/usr/share/licenses/libgcrypt
/usr/share/licenses/libgcrypt/COPYING.LIB
/etc/gcrypt
/etc/gcrypt/random.conf
/usr/lib/.build-id
/usr/lib/.build-id/ff
/usr/lib/.build-id/ff/1c8482bc8b8e1c476a6d3eb86196e77448f88c
/usr/lib/.libgcrypt.so.20.hmac
/usr/lib/libgcrypt.so.20
/usr/lib/libgcrypt.so.20.3.2
/usr/share/doc/libgcrypt
/usr/share/doc/libgcrypt/AUTHORS
/usr/share/doc/libgcrypt/NEWS
/usr/share/doc/libgcrypt/THANKS
/usr/share/licenses/libgcrypt
/usr/share/licenses/libgcrypt/COPYING.LIB

References

Summary

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