How To Install pyzfs-doc on Kali Linux

In this tutorial we learn how to install pyzfs-doc on Kali Linux. pyzfs-doc is wrapper for libzfs_core C library (documentation)

Introduction

In this tutorial we learn how to install pyzfs-doc on Kali Linux.

What is pyzfs-doc

pyzfs-doc is:

libzfs_core is intended to be a stable interface for programmatic administration of ZFS. This wrapper provides one-to-one wrappers for libzfs_core API functions, but the signatures and types are more natural to Python.

nvlists are wrapped as dictionaries or lists depending on their usage. Some parameters have default values depending on typical use for increased convenience. Enumerations and bit flags become strings and lists of strings in Python. Errors are reported as exceptions rather than integer errno-style error codes. The wrapper takes care to provide one-to-many mapping of the error codes to the exceptions by interpreting a context in which the error code is produced.

This package contains the documentation.

There are three methods to install pyzfs-doc on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install pyzfs-doc Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install pyzfs-doc using apt-get by running the following command:

sudo apt-get -y install pyzfs-doc

Install pyzfs-doc Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install pyzfs-doc

Install pyzfs-doc Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install pyzfs-doc

How To Uninstall pyzfs-doc on Kali Linux

To uninstall only the pyzfs-doc package we can use the following command:

sudo apt-get remove pyzfs-doc

Uninstall pyzfs-doc And Its Dependencies

To uninstall pyzfs-doc and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove pyzfs-doc

Remove pyzfs-doc Configurations and Data

To remove pyzfs-doc configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge pyzfs-doc

Remove pyzfs-doc configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge pyzfs-doc

Dependencies

pyzfs-doc have the following dependencies:

References

Summary

In this tutorial we learn how to install pyzfs-doc package on Kali Linux using different package management tools: apt, apt-get and aptitude.