How To Install utf8proc on CentOS 8

utf8proc is Library for processing UTF-8 encoded Unicode strings

Introduction

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

What is utf8proc

utf8proc is a library for processing UTF-8 encoded Unicode strings. Some features are Unicode normalization, stripping of default ignorable characters, case folding and detection of grapheme cluster boundaries. A special character mapping is available, which converts for example the characters “Hyphen” (U+2010), “Minus” (U+2212) and “Hyphen-Minus (U+002D, ASCII Minus) all into the ASCII minus sign, to make them equal for comparisons. The currently supported Unicode version is 9.0.0. This package only contains the C library.

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

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

sudo dnf -y install utf8proc

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

sudo yum -y install utf8proc

How To Uninstall utf8proc on CentOS 8

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

sudo dnf remove utf8proc

utf8proc Package Contents on CentOS 8

/usr/lib/.build-id
/usr/lib/.build-id/49
/usr/lib/.build-id/49/4c87c4c173516ce847b4621c715e36bf2de54e
/usr/lib64/libutf8proc.so.2
/usr/lib64/libutf8proc.so.2.1.1
/usr/share/doc/utf8proc
/usr/share/doc/utf8proc/LICENSE.md
/usr/share/doc/utf8proc/NEWS.md
/usr/share/doc/utf8proc/README.md

References

Summary

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