How To Install flashcache-utils on Debian 9

In this tutorial we learn how to install flashcache-utils on Debian 9. flashcache-utils is write-back block device cache for Linux (user space utilities)

Introduction

In this tutorial we learn how to install flashcache-utils on Debian 9.

What is flashcache-utils

flashcache-utils is:

Flashcache is a write-back block device cache for Linux. Using the Linux device mapper (DM) it provides an overlay mapper, to cache chunks of data on a high speed caching device like a solid-state drive for fast read access.

Flashcache supports FIFO and LRU cache sets, is configurable and error resistant. It comes with a DKMS kernel module and a corresponding user land for command and control.

This package provides user space utilities, required to control the kernel module.

There are three methods to install flashcache-utils 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 flashcache-utils Using apt-get

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

sudo apt-get update

After updating apt database, We can install flashcache-utils using apt-get by running the following command:

sudo apt-get -y install flashcache-utils

Install flashcache-utils Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install flashcache-utils using apt by running the following command:

sudo apt -y install flashcache-utils

Install flashcache-utils 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 flashcache-utils using aptitude by running the following command:

sudo aptitude -y install flashcache-utils

How To Uninstall flashcache-utils on Debian 9

To uninstall only the flashcache-utils package we can use the following command:

sudo apt-get remove flashcache-utils

Uninstall flashcache-utils And Its Dependencies

To uninstall flashcache-utils and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove flashcache-utils

Remove flashcache-utils Configurations and Data

To remove flashcache-utils configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge flashcache-utils

Remove flashcache-utils configuration, data, and all of its dependencies

We can use the following command to remove flashcache-utils configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge flashcache-utils

Dependencies

flashcache-utils have the following dependencies:

References

Summary

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