How To Install libcache-memcached-libmemcached-perl on Debian 9

In this tutorial we learn how to install libcache-memcached-libmemcached-perl on Debian 9. libcache-memcached-libmemcached-perl is cache interface to Memcached

Introduction

In this tutorial we learn how to install libcache-memcached-libmemcached-perl on Debian 9.

What is libcache-memcached-libmemcached-perl

libcache-memcached-libmemcached-perl is:

Cache::Memcached::libmemcached is the Cache::Memcached compatible interface to libmemcached, a C library to interface with memcached.

Cache::Memcached::libmemcached is built on top of Memcached::libmemcached. While Memcached::libmemcached aims to port libmemcached API to perl, Cache::Memcached::libmemcached attempts to be API compatible with Cache::Memcached, so it can be used as a drop-in replacement.

Cache::Memcached::libmemcached inherits from Memcached::libmemcached. While you are free to use the Memcached::libmemcached specific methods directly on the object, doing so will mean that your code is no longer compatible with the original Cache::Memcached API therefore losing some of the portability in case you want to replace it with some other package.

There are three methods to install libcache-memcached-libmemcached-perl on Debian 9. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libcache-memcached-libmemcached-perl Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install libcache-memcached-libmemcached-perl using apt-get by running the following command:

sudo apt-get -y install libcache-memcached-libmemcached-perl

Install libcache-memcached-libmemcached-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libcache-memcached-libmemcached-perl using apt by running the following command:

sudo apt -y install libcache-memcached-libmemcached-perl

Install libcache-memcached-libmemcached-perl Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libcache-memcached-libmemcached-perl using aptitude by running the following command:

sudo aptitude -y install libcache-memcached-libmemcached-perl

How To Uninstall libcache-memcached-libmemcached-perl on Debian 9

To uninstall only the libcache-memcached-libmemcached-perl package we can use the following command:

sudo apt-get remove libcache-memcached-libmemcached-perl

Uninstall libcache-memcached-libmemcached-perl And Its Dependencies

To uninstall libcache-memcached-libmemcached-perl and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove libcache-memcached-libmemcached-perl

Remove libcache-memcached-libmemcached-perl Configurations and Data

To remove libcache-memcached-libmemcached-perl configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge libcache-memcached-libmemcached-perl

Remove libcache-memcached-libmemcached-perl configuration, data, and all of its dependencies

We can use the following command to remove libcache-memcached-libmemcached-perl configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libcache-memcached-libmemcached-perl

Dependencies

libcache-memcached-libmemcached-perl have the following dependencies:

References

Summary

In this tutorial we learn how to install libcache-memcached-libmemcached-perl package on Debian 9 using different package management tools: apt, apt-get and aptitude.