How To Install pcre2-tools on Rocky Linux 8

In this tutorial we learn how to install pcre2-tools on Rocky Linux 8. pcre2-tools is Auxiliary utilities for pcre2

Introduction

In this tutorial we learn how to install pcre2-tools on Rocky Linux 8.

What is pcre2-tools

Utilities demonstrating PCRE2 capabilities like pcre2grep or pcre2test.

We can use yum or dnf to install pcre2-tools on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install pcre2-tools.

Install pcre2-tools on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install pcre2-tools

Install pcre2-tools on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install pcre2-tools using yum by running the following command:

sudo yum -y install pcre2-tools

How To Uninstall pcre2-tools on Rocky Linux 8

To uninstall only the pcre2-tools package we can use the following command:

sudo dnf remove pcre2-tools

pcre2-tools Package Contents on Rocky Linux 8

/usr/bin/pcre2grep
/usr/bin/pcre2test
/usr/lib/.build-id
/usr/lib/.build-id/c2
/usr/lib/.build-id/c2/30bfdf67d594fe7d21d84e72ba221c4396d17b
/usr/lib/.build-id/c6
/usr/lib/.build-id/c6/78504a3ae4115a94989afe8e01db83cf300068
/usr/share/man/man1/pcre2grep.1.gz
/usr/share/man/man1/pcre2test.1.gz

References

Summary

In this tutorial we learn how to install pcre2-tools on Rocky Linux 8 using yum and dnf.