How To Install pcre-static on Rocky Linux 8

In this tutorial we learn how to install pcre-static on Rocky Linux 8. pcre-static is Static library for pcre

Introduction

In this tutorial we learn how to install pcre-static on Rocky Linux 8.

What is pcre-static

Library for static linking for pcre.

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

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

sudo dnf -y install pcre-static

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

sudo yum -y install pcre-static

How To Uninstall pcre-static on Rocky Linux 8

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

sudo dnf remove pcre-static

pcre-static Package Contents on Rocky Linux 8

/usr/lib/libpcre.a
/usr/lib/libpcre16.a
/usr/lib/libpcre32.a
/usr/lib/libpcrecpp.a
/usr/lib/libpcreposix.a
/usr/share/licenses/pcre-static
/usr/share/licenses/pcre-static/COPYING
/usr/share/licenses/pcre-static/LICENCE
/usr/lib64/libpcre.a
/usr/lib64/libpcre16.a
/usr/lib64/libpcre32.a
/usr/lib64/libpcrecpp.a
/usr/lib64/libpcreposix.a
/usr/share/licenses/pcre-static
/usr/share/licenses/pcre-static/COPYING
/usr/share/licenses/pcre-static/LICENCE

References

Summary

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