How To Install zfs-test on Ubuntu 20.04

In this tutorial we learn how to install zfs-test on Ubuntu 20.04. zfs-test is OpenZFS test infrastructure and support scripts OpenZFS test infrastructure and support scripts OpenZFS test infrastructure and support scripts

Introduction

In this tutorial we learn how to install zfs-test on Ubuntu 20.04.

What is zfs-test

zfs-test is:

The Z file system is a pooled filesystem designed for maximum data integrity, supporting data snapshots, multiple copies, and data checksums.

This package provides the OpenZFS test infrastructure for destructively testing and validating a system using OpenZFS. It is entirely optional and should only be installed and used in test environments.

Package: zfs-test Architecture: amd64 Version: 0.8.3-1ubuntu12.9 Priority: optional Section: universe/admin 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: 8130 Depends: acl, bc, fio, ksh, lsscsi, mdadm, parted, python3, python3-pyzfs, sudo, sysstat, zfsutils-linux (>= 0.8.3-1ubuntu12.9), libaio1 (>= 0.3.93), libc6 (>= 2.29), libnvpair1linux (>= 0.8.2), libudev1 (>= 183), libzfs2linux (>= 0.8.3), libzpool2linux (>= 0.8.3) Conflicts: zutils Breaks: zfsutils-linux (<= 0.7.9-2) Replaces: zfsutils-linux (<= 0.7.9-2) Filename: pool/universe/z/zfs-linux/zfs-test_0.8.3-1ubuntu12.9_amd64.deb Size: 2955276 MD5sum: 088c0fc1b07f025eb475c6c0b69882f1 SHA1: ff9ebb841cbf236f9a2a93d7fae63e4dbd884fe2 SHA256: 9b9d26ea9ae48bea4df132c2786e685d0dfd34fb33316e9e1953237ce1500ba5 SHA512: 08ffb865f8196ac1e015a56145f2a01f76a9e1a4255e5a6952d5d1b0027eff36bec38c9414122618ba2da7098e72e0b00ace9260f25c62ef1ffd34494e882058 Homepage: https://zfsonlinux.org/ Description-en: OpenZFS test infrastructure and support scripts The Z file system is a pooled filesystem designed for maximum data integrity, supporting data snapshots, multiple copies, and data checksums.

This package provides the OpenZFS test infrastructure for destructively testing and validating a system using OpenZFS. It is entirely optional and should only be installed and used in test environments.

Package: zfs-test Architecture: amd64 Version: 0.8.3-1ubuntu12 Priority: optional Section: universe/admin 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: 8129 Depends: acl, bc, fio, ksh, lsscsi, mdadm, parted, python3, python3-pyzfs, sudo, sysstat, zfsutils-linux (>= 0.8.3-1ubuntu12), libaio1 (>= 0.3.93), libc6 (>= 2.29), libnvpair1linux (>= 0.8.2), libudev1 (>= 183), libzfs2linux (>= 0.8.3), libzpool2linux (>= 0.8.3) Conflicts: zutils Breaks: zfsutils-linux (<= 0.7.9-2) Replaces: zfsutils-linux (<= 0.7.9-2) Filename: pool/universe/z/zfs-linux/zfs-test_0.8.3-1ubuntu12_amd64.deb Size: 2953600 MD5sum: 2edcb17eccd51d7f6fd3ed75eefc5f94 SHA1: 3864833d0109bb5e234836892ac910e6425cf66c SHA256: aad36ad76c56f38ec9c4db6e3c9db7285a5a86f5ba5fc365f931a4f1f8199584 Homepage: https://zfsonlinux.org/ Description-en: OpenZFS test infrastructure and support scripts The Z file system is a pooled filesystem designed for maximum data integrity, supporting data snapshots, multiple copies, and data checksums.

This package provides the OpenZFS test infrastructure for destructively testing and validating a system using OpenZFS. It is entirely optional and should only be installed and used in test environments.

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

sudo apt-get -y install zfs-test

Install zfs-test Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install zfs-test

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

sudo aptitude -y install zfs-test

How To Uninstall zfs-test on Ubuntu 20.04

To uninstall only the zfs-test package we can use the following command:

sudo apt-get remove zfs-test

Uninstall zfs-test And Its Dependencies

To uninstall zfs-test and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove zfs-test

Remove zfs-test Configurations and Data

To remove zfs-test configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge zfs-test

Remove zfs-test configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge zfs-test

References

Summary

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