How To Install oniguruma on CentOS 8

oniguruma is Regular expressions library Regular expressions library

Introduction

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

What is oniguruma

Oniguruma is a regular expressions library. The characteristics of this library is that different character encoding for every regular expression object can be specified. (supported APIs oniguruma 6.8.2 2.el8 x86_64 187 k oniguruma-6.8.2-2.el8.src.rpm appstream Regular expressions library https BSD Oniguruma is a regular expressions library. The characteristics of this library is that different character encoding for every regular expression object can be specified. (supported APIs

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

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

sudo dnf -y install oniguruma

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

sudo yum -y install oniguruma

How To Uninstall oniguruma on CentOS 8

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

sudo dnf remove oniguruma

oniguruma Package Contents on CentOS 8

/usr/lib/.build-id
/usr/lib/.build-id/08
/usr/lib/.build-id/08/ee3c14209b698ec3d089f679e3565425e01e94
/usr/lib64/libonig.so.5
/usr/lib64/libonig.so.5.0.0
/usr/share/doc/oniguruma
/usr/share/doc/oniguruma/AUTHORS
/usr/share/doc/oniguruma/HISTORY
/usr/share/doc/oniguruma/README.md
/usr/share/doc/oniguruma/README_japanese
/usr/share/doc/oniguruma/index.html
/usr/share/doc/oniguruma/index_ja.html
/usr/share/licenses/oniguruma
/usr/share/licenses/oniguruma/COPYING
/usr/lib/.build-id
/usr/lib/.build-id/86
/usr/lib/.build-id/86/fb374e09548f8cf82e85dd7ab8392a2b902e3a
/usr/lib/libonig.so.5
/usr/lib/libonig.so.5.0.0
/usr/share/doc/oniguruma
/usr/share/doc/oniguruma/AUTHORS
/usr/share/doc/oniguruma/HISTORY
/usr/share/doc/oniguruma/README.md
/usr/share/doc/oniguruma/README_japanese
/usr/share/doc/oniguruma/index.html
/usr/share/doc/oniguruma/index_ja.html
/usr/share/licenses/oniguruma
/usr/share/licenses/oniguruma/COPYING

References

Summary

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