How To Install brotli on Rocky Linux 8

In this tutorial we learn how to install brotli on Rocky Linux 8. brotli is Lossless compression algorithm

Introduction

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

What is brotli

Brotli is a generic-purpose lossless compression algorithm that compresses data using a combination of a modern variant of the LZ77 algorithm, Huffman coding and 2nd order context modeling, with a compression ratio comparable to the best currently available general-purpose compression methods. It is similar in speed with deflate but offers more dense compression.

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

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

sudo dnf -y install brotli

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

sudo yum -y install brotli

How To Uninstall brotli on Rocky Linux 8

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

sudo dnf remove brotli

brotli Package Contents on Rocky Linux 8

/usr/bin/brotli
/usr/lib/.build-id
/usr/lib/.build-id/1e
/usr/lib/.build-id/1e/140d5f3b68173fbab35279b20d6414cf8d2a71
/usr/lib/.build-id/2c
/usr/lib/.build-id/2c/863fbdfb34eded1b7ff82d63093a3b657c2fda
/usr/lib/.build-id/42
/usr/lib/.build-id/42/e99c9be75339e887f8e0bb1303e9786dede4e9
/usr/lib/.build-id/64
/usr/lib/.build-id/64/ffab7a37e1648015dd0ee0d38e8b5a92456509
/usr/lib/libbrotlicommon.so.1
/usr/lib/libbrotlicommon.so.1.0.6
/usr/lib/libbrotlidec.so.1
/usr/lib/libbrotlidec.so.1.0.6
/usr/lib/libbrotlienc.so.1
/usr/lib/libbrotlienc.so.1.0.6
/usr/share/licenses/brotli
/usr/share/licenses/brotli/LICENSE
/usr/bin/brotli
/usr/lib/.build-id
/usr/lib/.build-id/2b
/usr/lib/.build-id/2b/9e52cda14831619104f0c558a604df3fcfc2eb
/usr/lib/.build-id/65
/usr/lib/.build-id/65/5ee0295d320913f973843e9b519ceef543a925
/usr/lib/.build-id/6a
/usr/lib/.build-id/6a/a814c8cb98a5b1201481796c65c0a9936e2fdb
/usr/lib/.build-id/e1
/usr/lib/.build-id/e1/378319bd1ec1dc5940a870b18174ab3d481a21
/usr/lib64/libbrotlicommon.so.1
/usr/lib64/libbrotlicommon.so.1.0.6
/usr/lib64/libbrotlidec.so.1
/usr/lib64/libbrotlidec.so.1.0.6
/usr/lib64/libbrotlienc.so.1
/usr/lib64/libbrotlienc.so.1.0.6
/usr/share/licenses/brotli
/usr/share/licenses/brotli/LICENSE

References

Summary

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