How To Install flashcache-dkms on Debian 9

In this tutorial we learn how to install flashcache-dkms on Debian 9. flashcache-dkms is write-back block device cache for Linux (DKMS version)

Introduction

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

What is flashcache-dkms

flashcache-dkms 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. Alternatively it can be configured as write-through and write-around flash cache, which does not store any persitent data in the flash volume, hence purging the cache upon reboot.

This package provides the DKMS kernel module.

Warning: Flashcache is known not to work on the i686 (x86_32) architecture and possibly others.

There are three methods to install flashcache-dkms 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-dkms 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-dkms using apt-get by running the following command:

sudo apt-get -y install flashcache-dkms

Install flashcache-dkms Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install flashcache-dkms

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

sudo aptitude -y install flashcache-dkms

How To Uninstall flashcache-dkms on Debian 9

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

sudo apt-get remove flashcache-dkms

Uninstall flashcache-dkms And Its Dependencies

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

sudo apt-get -y autoremove flashcache-dkms

Remove flashcache-dkms Configurations and Data

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

sudo apt-get -y purge flashcache-dkms

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

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

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

Dependencies

flashcache-dkms have the following dependencies:

References

Summary

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