How To Install libmemcached on AlmaLinux 8

In this tutorial we learn how to install libmemcached in AlmaLinux 8. libmemcached is Client library and command line tools for memcached server

Introduction

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

What is libmemcached

libmemcached is a C/C++ client library and tools for the memcached server (http usage, and provide full access to server side methods. It also implements several command line tools memaslap Load testing and benchmarking a server memcapable Checking a Memcached server capibilities and compatibility memcat Copy the value of a key to standard output memcp Copy data to a server memdump Dumping your server memerror Translate an error code to a string memexist Check for the existance of a key memflush Flush the contents of your servers memparse Parse an option string memping Test to see if a server is available. memrm Remove a key(s) from the server memslap Generate testing loads on a memcached cluster memstat Dump the stats of your servers to standard output memtouch Touches a key

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

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

sudo dnf -y install libmemcached

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

sudo yum -y install libmemcached

How To Uninstall libmemcached on AlmaLinux 8

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

sudo dnf remove libmemcached

References

Summary

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