How To Install nettle on Rocky Linux 8

In this tutorial we learn how to install nettle on Rocky Linux 8. nettle is A low-level cryptographic library

Introduction

In this tutorial we learn how to install nettle on Rocky Linux 8.

What is nettle

Nettle is a cryptographic library that is designed to fit easily in more or less any context (C++, Python, Pike, …), in applications like LSH or GNUPG, or even in kernel space.

We can use yum or dnf to install nettle on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install nettle.

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

sudo dnf -y install nettle

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

sudo yum -y install nettle

How To Uninstall nettle on Rocky Linux 8

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

sudo dnf remove nettle

nettle Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/11
/usr/lib/.build-id/11/f3a0cc34da906ad7e4074a0084e5aedd911553
/usr/lib/.build-id/25
/usr/lib/.build-id/25/1b43e784a9496b389383d59c391d30737a3ca2
/usr/lib64/.libhogweed.so.4.5.hmac
/usr/lib64/.libhogweed.so.4.hmac
/usr/lib64/.libnettle.so.6.5.hmac
/usr/lib64/.libnettle.so.6.hmac
/usr/lib64/libhogweed.so.4
/usr/lib64/libhogweed.so.4.5
/usr/lib64/libnettle.so.6
/usr/lib64/libnettle.so.6.5
/usr/share/doc/nettle
/usr/share/doc/nettle/AUTHORS
/usr/share/doc/nettle/NEWS
/usr/share/doc/nettle/README
/usr/share/doc/nettle/TODO
/usr/share/info/nettle.info.gz
/usr/share/licenses/nettle
/usr/share/licenses/nettle/COPYING.LESSERv3
/usr/share/licenses/nettle/COPYINGv2
/usr/lib/.build-id
/usr/lib/.build-id/b8
/usr/lib/.build-id/b8/ab69466558ab6a82380dbafdc3c1a71d477ab5
/usr/lib/.build-id/bb
/usr/lib/.build-id/bb/a96c35baff6593132726c990e22050196962bd
/usr/lib/.libhogweed.so.4.5.hmac
/usr/lib/.libhogweed.so.4.hmac
/usr/lib/.libnettle.so.6.5.hmac
/usr/lib/.libnettle.so.6.hmac
/usr/lib/libhogweed.so.4
/usr/lib/libhogweed.so.4.5
/usr/lib/libnettle.so.6
/usr/lib/libnettle.so.6.5
/usr/share/doc/nettle
/usr/share/doc/nettle/AUTHORS
/usr/share/doc/nettle/NEWS
/usr/share/doc/nettle/README
/usr/share/doc/nettle/TODO
/usr/share/info/nettle.info.gz
/usr/share/licenses/nettle
/usr/share/licenses/nettle/COPYING.LESSERv3
/usr/share/licenses/nettle/COPYINGv2

References

Summary

In this tutorial we learn how to install nettle on Rocky Linux 8 using yum and dnf.