How To Install spl on Ubuntu 18.04

In this tutorial we learn how to install spl on Ubuntu 18.04. spl is Solaris Porting Layer user-space utilities for Linux

Introduction

In this tutorial we learn how to install spl on Ubuntu 18.04.

What is spl

spl 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 includes the user space utilities needed to test and debug the SPL and SPLAT kernel modules.

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

sudo apt-get -y install spl

Install spl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install spl

Install spl 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 Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install spl

How To Uninstall spl on Ubuntu 18.04

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

sudo apt-get remove spl

Uninstall spl And Its Dependencies

To uninstall spl and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove spl

Remove spl Configurations and Data

To remove spl configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge spl

Remove spl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge spl

References

Summary

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