How To Install libmemcached on CentOS 7

In this tutorial we learn how to install libmemcached on CentOS 7. libmemcached is Client library and command line tools for memcached server

Introduction

In this tutorial we learn how to install libmemcached on CentOS 7.

What is libmemcached

libmemcached is a C/C++ client library and tools for the memcached server (http on memory 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 libmemcached is a C/C++ client library and tools for the memcached server (http on memory 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 CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install libmemcached.

Install libmemcached on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install libmemcached

Install libmemcached on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install libmemcached

How To Uninstall libmemcached on CentOS 7

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 CentOS 7 using yum and dnf.