How To Install zfs-dkms on Ubuntu 20.04
Introduction
In this tutorial we learn how to install zfs-dkms
on Ubuntu 20.04.
What is zfs-dkms
zfs-dkms is:
The Z file system is a pooled filesystem designed for maximum data integrity, supporting data snapshots, multiple copies, and data checksums.
This DKMS package includes the SPA, DMU, ZVOL, and ZPL components of OpenZFS.
Package: zfs-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: 14161 Provides: zfs-modules Depends: dkms (» 2.1.1.2-5), file, libc6-dev | libc-dev, lsb-release, python3-distutils | libpython3-stdlib (« 3.6.4), debconf (>= 0.5) | debconf-2.0, perl:any Recommends: zfs-zed, zfsutils-linux (>= 0.8.3-1ubuntu12.9), linux-libc-dev (« 5.5~), linux-libc-dev (>= 2.6.32~) Suggests: debhelper Breaks: spl-dkms (« 0.8.0~rc1) Replaces: spl-dkms Filename: pool/universe/z/zfs-linux/zfs-dkms_0.8.3-1ubuntu12.9_all.deb Size: 1896624 MD5sum: 8881410412d1ae38946cd7b5f4f84e28 SHA1: a81c8b272d63594b4c74f894bfedd701529e86ad SHA256: 20bacda0891b155c89619eb0f1f9ad2e95ac9f0a46b2ff0b4b72b28e35250fb1 SHA512: c710c33efba38a21e669aae4f897ac49f4f31419e3956f0420b873fec3e48ba154f5f984364c5547fff29ad3478cae383cce185d05b6cad15e7736933bfc5865 Homepage: https://zfsonlinux.org/ Description-en: OpenZFS filesystem kernel modules for Linux The Z file system is a pooled filesystem designed for maximum data integrity, supporting data snapshots, multiple copies, and data checksums.
This DKMS package includes the SPA, DMU, ZVOL, and ZPL components of OpenZFS.
Package: zfs-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: 14093 Provides: zfs-modules Depends: dkms (» 2.1.1.2-5), file, libc6-dev | libc-dev, lsb-release, python3-distutils | libpython3-stdlib (« 3.6.4), debconf (>= 0.5) | debconf-2.0, perl:any Recommends: zfs-zed, zfsutils-linux (>= 0.8.3-1ubuntu12), linux-libc-dev (« 5.5~), linux-libc-dev (>= 2.6.32~) Suggests: debhelper Breaks: spl-dkms (« 0.8.0~rc1) Replaces: spl-dkms Filename: pool/universe/z/zfs-linux/zfs-dkms_0.8.3-1ubuntu12_all.deb Size: 1885032 MD5sum: 6fa33e341fd21dd54549af07bdb0c417 SHA1: ff9f8f9278a3f21e0db73162171174f21553f36a SHA256: ea4248d939c6dc3f79510d1278354e07b34d16826ed937c25a43930b6745db7f Homepage: https://zfsonlinux.org/ Description-en: OpenZFS filesystem kernel modules for Linux The Z file system is a pooled filesystem designed for maximum data integrity, supporting data snapshots, multiple copies, and data checksums.
This DKMS package includes the SPA, DMU, ZVOL, and ZPL components of OpenZFS.
There are three methods to install zfs-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 zfs-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 zfs-dkms
using apt-get
by running the following command:
sudo apt-get -y install zfs-dkms
Install zfs-dkms Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install zfs-dkms
using apt
by running the following command:
sudo apt -y install zfs-dkms
Install zfs-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 zfs-dkms
using aptitude
by running the following command:
sudo aptitude -y install zfs-dkms
How To Uninstall zfs-dkms on Ubuntu 20.04
To uninstall only the zfs-dkms
package we can use the following command:
sudo apt-get remove zfs-dkms
Uninstall zfs-dkms And Its Dependencies
To uninstall zfs-dkms
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove zfs-dkms
Remove zfs-dkms Configurations and Data
To remove zfs-dkms
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge zfs-dkms
Remove zfs-dkms configuration, data, and all of its dependencies
We can use the following command to remove zfs-dkms
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge zfs-dkms
References
Summary
In this tutorial we learn how to install zfs-dkms
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.