How To Install woff2 on CentOS 8

woff2 is Web Open Font Format 2.0 library Web Open Font Format 2.0 library

Introduction

In this tutorial we learn how to install woff2 on CentOS 8.

What is woff2

Web Open Font Format (WOFF) 2.0 is an update to the existing WOFF 1.0 with improved compression that is achieved by using the Brotli algorithm. The primary purpose of the WOFF2 format is to efficiently package fonts linked to Web documents by means of CSS @font-face rules. woff2 1.0.2 5.el8 x86_64 59 k woff2-1.0.2-5.el8.src.rpm appstream Web Open Font Format 2.0 library https MIT Web Open Font Format (WOFF) 2.0 is an update to the existing WOFF 1.0 with improved compression that is achieved by using the Brotli algorithm. The primary purpose of the WOFF2 format is to efficiently package fonts linked to Web documents by means of CSS @font-face rules.

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

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

sudo dnf -y install woff2

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

sudo yum -y install woff2

How To Uninstall woff2 on CentOS 8

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

sudo dnf remove woff2

woff2 Package Contents on CentOS 8

/usr/lib/.build-id
/usr/lib/.build-id/0b
/usr/lib/.build-id/0b/aea6e9d403b4bbf69aa891d0c4fffc361edd7b
/usr/lib/.build-id/5b
/usr/lib/.build-id/5b/913205c1cdc97353c26f08e61891e0cef00996
/usr/lib/.build-id/91
/usr/lib/.build-id/91/2d86f732667ffebe8b0fc228281b40433849dc
/usr/lib/libwoff2common.so.1.0.2
/usr/lib/libwoff2dec.so.1.0.2
/usr/lib/libwoff2enc.so.1.0.2
/usr/share/licenses/woff2
/usr/share/licenses/woff2/LICENSE
/usr/lib/.build-id
/usr/lib/.build-id/2a
/usr/lib/.build-id/2a/c7f3bedf913acf1b96414f5e99cd26ae12a0cd
/usr/lib/.build-id/5d
/usr/lib/.build-id/5d/8efc1c2e0e103ae7a87af097a2708ef7b21000
/usr/lib/.build-id/b6
/usr/lib/.build-id/b6/874ba718d5bca1c5b687180ade0fd147e51d4f
/usr/lib64/libwoff2common.so.1.0.2
/usr/lib64/libwoff2dec.so.1.0.2
/usr/lib64/libwoff2enc.so.1.0.2
/usr/share/licenses/woff2
/usr/share/licenses/woff2/LICENSE

References

Summary

In this tutorial we learn how to install woff2 on CentOS 8 using yum and dnf.