How To Install libmongocrypt on Fedora 34

libmongocrypt is The companion C library for client side encryption in drivers The companion C library for client side encryption in drivers

Introduction

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

What is libmongocrypt

The companion C library for client side encryption in drivers. libmongocrypt 1.2.1 1.fc34 x86_64 95 k libmongocrypt-1.2.1-1.fc34.src.rpm updates The companion C library for client side encryption in drivers https ASL 2.0 and ISC The companion C library for client side encryption in drivers.

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

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

sudo dnf -y install libmongocrypt

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

sudo yum -y install libmongocrypt

How To Uninstall libmongocrypt on Fedora 34

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

sudo dnf remove libmongocrypt

libmongocrypt Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/08
/usr/lib/.build-id/08/3a7d06bb307baa40a01fc99359e0eb7062cd10
/usr/lib/.build-id/cd
/usr/lib/.build-id/cd/44f0d5fda7e66d4f5c487cfbf40dd67099788a
/usr/lib64/libkms_message.so.0
/usr/lib64/libkms_message.so.0.0.0
/usr/lib64/libmongocrypt.so.0
/usr/lib64/libmongocrypt.so.0.0.0
/usr/share/licenses/libmongocrypt
/usr/share/licenses/libmongocrypt/LICENSE
/usr/lib/.build-id
/usr/lib/.build-id/45
/usr/lib/.build-id/45/5aa17a729285702abfecbf5f13ae6773fbdd76
/usr/lib/.build-id/af
/usr/lib/.build-id/af/b22f7c91525b0b240f62c413a7ebe0363d64ba
/usr/lib64/libkms_message.so.0
/usr/lib64/libkms_message.so.0.0.0
/usr/lib64/libmongocrypt.so.0
/usr/lib64/libmongocrypt.so.0.0.0
/usr/share/licenses/libmongocrypt
/usr/share/licenses/libmongocrypt/LICENSE
/usr/lib/.build-id
/usr/lib/.build-id/8f
/usr/lib/.build-id/8f/7387b626caf3dba85723f4d67a98dda73f1574
/usr/lib/.build-id/a0
/usr/lib/.build-id/a0/ffe72ccf8c95b2e7c74003b308e5c40f6cae5f
/usr/lib/libkms_message.so.0
/usr/lib/libkms_message.so.0.0.0
/usr/lib/libmongocrypt.so.0
/usr/lib/libmongocrypt.so.0.0.0
/usr/share/licenses/libmongocrypt
/usr/share/licenses/libmongocrypt/LICENSE
/usr/lib/.build-id
/usr/lib/.build-id/90
/usr/lib/.build-id/90/6e4e94c8a97f807fd0fe77b69e375287bdfc25
/usr/lib/.build-id/f9
/usr/lib/.build-id/f9/38f93ad959fc7d5b327816d424fda2489bc3a8
/usr/lib/libkms_message.so.0
/usr/lib/libkms_message.so.0.0.0
/usr/lib/libmongocrypt.so.0
/usr/lib/libmongocrypt.so.0.0.0
/usr/share/licenses/libmongocrypt
/usr/share/licenses/libmongocrypt/LICENSE

References

Summary

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