How To Install spl-dkms on Ubuntu 20.04
Introduction
In this tutorial we learn how to install spl-dkms
on Ubuntu 20.04.
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 is a transitional dummy package. It can safely be removed. SPL dkms files had been merged into zfs-dkms as of ZFS 0.8.X series.
Package: spl-dkms Architecture: all Version: 0.8.3-1ubuntu12.9 Priority: extra Section: universe/kernel Source: zfs-linux Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian ZFS on Linux maintainers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 67 Depends: zfs-dkms Filename: pool/universe/z/zfs-linux/spl-dkms_0.8.3-1ubuntu12.9_all.deb Size: 14808 MD5sum: ac694b94b7b8b0a6fcc53fe314acfe0b SHA1: ad8dacf6194eaa31a20704f308ab67058768e869 SHA256: 0e8a5ad40f69ddcf1ba940c7cff9c1fbdad0088db6b42cf8488ce7b3b72391a4 SHA512: a9d64ab88c0989792f2d19b5f6323e6b5ef897ad78772586f14a84441a8bfb44ea263a2b22fc7faca73241ab426e5583b834a1f0e54bf277c526f33ff5c79f41 Homepage: https://zfsonlinux.org/ Description-en: Solaris Porting Layer kernel modules for Linux (dummy) 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 is a transitional dummy package. It can safely be removed. SPL dkms files had been merged into zfs-dkms as of ZFS 0.8.X series.
Package: spl-dkms Architecture: all Version: 0.8.3-1ubuntu12 Priority: extra Section: universe/kernel Source: zfs-linux Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian ZFS on Linux maintainers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 66 Depends: zfs-dkms Filename: pool/universe/z/zfs-linux/spl-dkms_0.8.3-1ubuntu12_all.deb Size: 12972 MD5sum: b24e23c2b517567052c9a1f0fb0e9ebf SHA1: 971981138d787c6fcd1ebe2f25c3d5e2d9ab4aaa SHA256: b18ac2e1f2d85b7f460781cbfb28d10d863f6b746ce660b06f25c5a9b938d7af Homepage: https://zfsonlinux.org/ Description-en: Solaris Porting Layer kernel modules for Linux (dummy) 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 is a transitional dummy package. It can safely be removed. SPL dkms files had been merged into zfs-dkms as of ZFS 0.8.X series.
There are three methods to install spl-dkms
on Ubuntu 20.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-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 Ubuntu. 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 Ubuntu 20.04
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 Ubuntu 20.04, 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 Ubuntu 20.04 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
References
Summary
In this tutorial we learn how to install spl-dkms
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.