How To Install jemalloc on Fedora 34

jemalloc is General-purpose scalable concurrent malloc implementation General-purpose scalable concurrent malloc implementation

Introduction

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

What is jemalloc

General-purpose scalable concurrent malloc(3) implementation. This distribution is the stand-alone “portable” implementation of jemalloc. jemalloc 5.2.1 5.fc34 x86_64 206 k jemalloc-5.2.1-5.fc34.src.rpm fedora General-purpose scalable concurrent malloc implementation http BSD General-purpose scalable concurrent malloc(3) implementation. This distribution is the stand-alone “portable” implementation of jemalloc.

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

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

sudo dnf -y install jemalloc

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

sudo yum -y install jemalloc

How To Uninstall jemalloc on Fedora 34

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

sudo dnf remove jemalloc

jemalloc Package Contents on Fedora 34

/usr/bin/jemalloc.sh
/usr/lib/.build-id
/usr/lib/.build-id/dc
/usr/lib/.build-id/dc/ee0496a4aa7e3a8a224f73424aa993d06d1e98
/usr/lib/libjemalloc.so.2
/usr/share/doc/jemalloc
/usr/share/doc/jemalloc/COPYING
/usr/share/doc/jemalloc/README
/usr/share/doc/jemalloc/VERSION
/usr/share/doc/jemalloc/jemalloc.html
/usr/bin/jemalloc.sh
/usr/lib/.build-id
/usr/lib/.build-id/ff
/usr/lib/.build-id/ff/4e36c115a160ca2da560b5a30af24e162ae5ab
/usr/lib64/libjemalloc.so.2
/usr/share/doc/jemalloc
/usr/share/doc/jemalloc/COPYING
/usr/share/doc/jemalloc/README
/usr/share/doc/jemalloc/VERSION
/usr/share/doc/jemalloc/jemalloc.html

References

Summary

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