How To Install python-lxml-doc on Ubuntu 20.04

In this tutorial we learn how to install python-lxml-doc on Ubuntu 20.04. python-lxml-doc is pythonic binding for the libxml2 and libxslt libraries (documentation) pythonic binding for the libxml2 and libxslt libraries (documentation)

Introduction

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

What is python-lxml-doc

python-lxml-doc is:

lxml is a new Python binding for libxml2 and libxslt, completely independent from these existing Python bindings.

This package contains the html documentation.

Package: python-lxml-doc Architecture: all Version: 4.5.0-1 Multi-Arch: foreign Priority: extra Section: universe/doc Source: lxml Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Matthias Klose [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 25241 Recommends: python3-lxml Filename: pool/universe/l/lxml/python-lxml-doc_4.5.0-1_all.deb Size: 1152968 MD5sum: 51c45e0db84e22973875a0d7a71e13c0 SHA1: 9d0234f69a71fa58082921dc799705140f36c1af SHA256: 2e794d18c80107b3ba3c436a09ab4ae2a2a0d0b4dfdc928f575d767a901047c1 Homepage: http://lxml.de/ Description-en: pythonic binding for the libxml2 and libxslt libraries (documentation) lxml is a new Python binding for libxml2 and libxslt, completely independent from these existing Python bindings.

This package contains the html documentation.

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

sudo apt-get -y install python-lxml-doc

Install python-lxml-doc Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-lxml-doc

Install python-lxml-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 python-lxml-doc using aptitude by running the following command:

sudo aptitude -y install python-lxml-doc

How To Uninstall python-lxml-doc on Ubuntu 20.04

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

sudo apt-get remove python-lxml-doc

Uninstall python-lxml-doc And Its Dependencies

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

sudo apt-get -y autoremove python-lxml-doc

Remove python-lxml-doc Configurations and Data

To remove python-lxml-doc configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge python-lxml-doc

Remove python-lxml-doc configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge python-lxml-doc

References

Summary

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