How To Install libgcrypt on Rocky Linux 8
Introduction
In this tutorial we learn how to install libgcrypt on Rocky Linux 8.
What is libgcrypt
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 Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install libgcrypt.
Install libgcrypt on Rocky Linux 8 Using dnf
Update yum database with dnf using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install libgcrypt using dnf by running the following command:
sudo dnf -y install libgcrypt
Install libgcrypt on Rocky Linux 8 Using yum
Update yum database with yum using the following command.
sudo yum makecache --refresh
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 Rocky Linux 8
To uninstall only the libgcrypt package we can use the following command:
sudo dnf remove libgcrypt
libgcrypt Package Contents on Rocky Linux 8
/etc/gcrypt
/etc/gcrypt/random.conf
/usr/lib/.build-id
/usr/lib/.build-id/2e
/usr/lib/.build-id/2e/e7fafff5ded4754ea4a729326622d08430a2a8
/usr/lib/.libgcrypt.so.20.hmac
/usr/lib/libgcrypt.so.20
/usr/lib/libgcrypt.so.20.2.5
/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/8a
/usr/lib/.build-id/8a/99d75de60383a4ef51c1070f06f8176590596d
/usr/lib64/.libgcrypt.so.20.hmac
/usr/lib64/libgcrypt.so.20
/usr/lib64/libgcrypt.so.20.2.5
/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 Rocky Linux 8 using yum and dnf.