How To Install pyzfs-doc on Ubuntu 20.04

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

Introduction

In this tutorial we learn how to install pyzfs-doc on Ubuntu 20.04.

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.

Package: pyzfs-doc Architecture: all Version: 0.8.3-1ubuntu12.9 Priority: optional Section: doc 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: 394 Depends: libjs-sphinxdoc (>= 1.0) Recommends: python3-pyzfs Filename: pool/main/z/zfs-linux/pyzfs-doc_0.8.3-1ubuntu12.9_all.deb Size: 48540 MD5sum: 9966236ceec2bc189758dcc1d51301b1 SHA1: 0aae676797907bf83f13b4b7137f7ae10c8a0fc6 SHA256: e9d24889b200807ecd9afc57f0ed1f978955b8412d5ff54ef3275c04784ffc4f SHA512: 2758f4487a5d3be525a8ed8dd2f04a7bd6f1fe633f83d75dd79bc12d0ebece16979b81b8f30016de3d554472c493d517e3ac1dece1415146ed70ace7d450d4c2 Homepage: https://zfsonlinux.org/ Description-en: wrapper for libzfs_core C library (documentation) 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.

Package: pyzfs-doc Architecture: all Version: 0.8.3-1ubuntu12 Priority: optional Section: doc 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: 393 Depends: libjs-sphinxdoc (>= 1.0) Recommends: python3-pyzfs Filename: pool/main/z/zfs-linux/pyzfs-doc_0.8.3-1ubuntu12_all.deb Size: 48376 MD5sum: 36bb7c5328ebf91ec8be01daf2dc41b4 SHA1: af31081b1d3c3074a406a7c0f34a4140de1242c1 SHA256: 7216550034c7226234f48a6560d3df9a1f06e659b37ebb9b8a61b61c694e1fff Homepage: https://zfsonlinux.org/ Description-en: wrapper for libzfs_core C library (documentation) 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 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 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 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 pyzfs-doc using aptitude by running the following command:

sudo aptitude -y install pyzfs-doc

How To Uninstall pyzfs-doc on Ubuntu 20.04

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 Ubuntu 20.04, 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 Ubuntu 20.04 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

References

Summary

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