How To Install redis-devel on Rocky Linux 8

In this tutorial we learn how to install redis-devel on Rocky Linux 8. redis-devel is Development header for Redis module development

Introduction

In this tutorial we learn how to install redis-devel on Rocky Linux 8.

What is redis-devel

Header file required for building loadable Redis modules. Detailed API documentation is available in the redis-doc package.

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

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

sudo dnf -y install redis-devel

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

sudo yum -y install redis-devel

How To Uninstall redis-devel on Rocky Linux 8

To uninstall only the redis-devel package we can use the following command:

sudo dnf remove redis-devel

redis-devel Package Contents on Rocky Linux 8

/usr/include/redismodule.h
/usr/lib/rpm/macros.d/macros.redis
/usr/share/licenses/redis-devel
/usr/share/licenses/redis-devel/COPYING

References

Summary

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