How To Install spl-dkms on Debian 9

In this tutorial we learn how to install spl-dkms on Debian 9. spl-dkms is Solaris Porting Layer kernel modules for Linux

Introduction

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

What is spl-dkms

spl-dkms is:

The Solaris Porting Layer (SPL) is a Linux kernel module which provides many of the Solaris kernel APIs. This shim layer makes it possible to run Solaris kernel code in the Linux kernel with relatively minimal modification. The Solaris Porting LAyer Tests (SPLAT) is a Linux kernel module which provides a testing harness for the SPL module.

SPL can be particularly useful when you want to track upstream Illumos (or any other OpenSolaris fork) development closely and don’t want the overhead of maintaining a large patch which converts Solaris primitives to Linux primitives.

This package contains the source code for the SPL and SPLAT Linux kernel modules, which can be used with DKMS, so that local kernel modules are automatically built and installed every time the kernel packages are upgraded.

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

sudo apt-get -y install spl-dkms

Install spl-dkms Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install spl-dkms

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

sudo aptitude -y install spl-dkms

How To Uninstall spl-dkms on Debian 9

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

sudo apt-get remove spl-dkms

Uninstall spl-dkms And Its Dependencies

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

sudo apt-get -y autoremove spl-dkms

Remove spl-dkms Configurations and Data

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

sudo apt-get -y purge spl-dkms

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

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

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

Dependencies

spl-dkms have the following dependencies:

References

Summary

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