How To Install utf8proc on CentOS 7

In this tutorial we learn how to install utf8proc on CentOS 7. utf8proc is Library for processing UTF-8 encoded Unicode strings

Introduction

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

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 5.0.0. This package only contains the C library.

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

Install utf8proc on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install utf8proc using yum by running the following command:

sudo yum -y install utf8proc

Install utf8proc on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install utf8proc using dnf by running the following command:

sudo dnf -y install utf8proc

How To Uninstall utf8proc on CentOS 7

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

sudo dnf remove utf8proc

References

Summary

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