How To Install memcached on AlmaLinux 8

In this tutorial we learn how to install memcached in AlmaLinux 8. memcached is High Performance, Distributed Memory Object Cache

Introduction

In this tutorial we learn how to install memcached on AlmaLinux 8.

What is memcached

memcached is a high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load.

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

Install memcached on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install memcached

Install memcached on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install memcached using yum by running the following command:

sudo yum -y install memcached

How To Uninstall memcached on AlmaLinux 8

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

sudo dnf remove memcached

References

Summary

In this tutorial we learn how to install memcached on AlmaLinux 8 using yum and dnf.