How To Install ghc-pcre-light on CentOS 7

In this tutorial we learn how to install ghc-pcre-light on CentOS 7. ghc-pcre-light is Perl5 compatible regular expression library

Introduction

In this tutorial we learn how to install ghc-pcre-light on CentOS 7.

What is ghc-pcre-light

A small, efficient and portable regex library for Perl 5 compatible regular expressions. The PCRE library is a set of functions that implement regular expression pattern matching using the same syntax and semantics as Perl 5.

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

Install ghc-pcre-light on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install ghc-pcre-light using yum by running the following command:

sudo yum -y install ghc-pcre-light

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

sudo dnf -y install ghc-pcre-light

How To Uninstall ghc-pcre-light on CentOS 7

To uninstall only the ghc-pcre-light package we can use the following command:

sudo dnf remove ghc-pcre-light

References

Summary

In this tutorial we learn how to install ghc-pcre-light on CentOS 7 using yum and dnf.