Introduction
In this tutorial we learn how to install brotli
on CentOS 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. brotli 1.0.6 3.el8 x86_64 323 k brotli-1.0.6-3.el8.src.rpm baseos Lossless compression algorithm https MIT 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 CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install brotli.
Install brotli on CentOS 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install brotli
using dnf
by running the following command:
sudo dnf -y install brotli
Install brotli on CentOS 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
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 CentOS 8
To uninstall only the brotli
package we can use the following command:
sudo dnf remove brotli
brotli Package Contents on CentOS 8
/usr/bin/brotli
/usr/lib/.build-id
/usr/lib/.build-id/02
/usr/lib/.build-id/02/ca55f606e65083eb24cdc383da28bc584fdeb7
/usr/lib/.build-id/57
/usr/lib/.build-id/57/622898025c873f92605b48695636e1dbcb12de
/usr/lib/.build-id/79
/usr/lib/.build-id/79/4331ce71b0359d764919d5ad85b6b729ae1d16
/usr/lib/.build-id/7a
/usr/lib/.build-id/7a/ba02bb777a48f1841c634c1dc6d9c601ee8945
/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/21
/usr/lib/.build-id/21/02f8b99ecbb8abf6532fe8a82b5387230f5ee7
/usr/lib/.build-id/ad
/usr/lib/.build-id/ad/bb8adc50a28ad821624155581644b10cbe6ab0
/usr/lib/.build-id/bb
/usr/lib/.build-id/bb/c1ffd06d756decbccd78177483774e6c8cddae
/usr/lib/.build-id/fa
/usr/lib/.build-id/fa/4000cf1815de5128fd769da6baa31e71a9e784
/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
- [brotli website](https://github.com/google/brotli
https://github.com/google/brotli)
Summary
In this tutorial we learn how to install brotli
on CentOS 8 using yum and dnf.