How To Install librx on Rocky Linux 8

In this tutorial we learn how to install librx on Rocky Linux 8. librx is POSIX regexp functions

Introduction

In this tutorial we learn how to install librx on Rocky Linux 8.

What is librx

Rx is, among other things, an implementation of the interface specified by POSIX for programming with regular expressions. Some other implementations are GNU regex.c and Henry Spencer’s regex library.

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

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

sudo dnf -y install librx

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

sudo yum -y install librx

How To Uninstall librx on Rocky Linux 8

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

sudo dnf remove librx

librx Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/3f
/usr/lib/.build-id/3f/cd485ffb0186025438828d903825199e2a725b
/usr/lib64/librx.so.0
/usr/lib64/librx.so.0.0.0
/usr/lib/.build-id
/usr/lib/.build-id/ef
/usr/lib/.build-id/ef/25d489f469fd5fb6577027d0bf97dcf06396c7
/usr/lib/librx.so.0
/usr/lib/librx.so.0.0.0

References

Summary

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