How To Install python-pygments-doc on Ubuntu 20.04

In this tutorial we learn how to install python-pygments-doc on Ubuntu 20.04. python-pygments-doc is documentation for the Pygments documentation for the Pygments

Introduction

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

What is python-pygments-doc

python-pygments-doc is:

Pygments is syntax highlighting package.

This package contains the documentation for Pygments in HTML and reStructuredText format.

Package: python-pygments-doc Architecture: all Version: 2.3.1+dfsg-1ubuntu2 Multi-Arch: foreign Priority: extra Section: universe/doc Source: pygments Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Piotr Ożarowski [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 1419 Depends: libjs-sphinxdoc (>= 1.0) Conflicts: python-pygments (<= 2.0~) Filename: pool/universe/p/pygments/python-pygments-doc_2.3.1+dfsg-1ubuntu2_all.deb Size: 215448 MD5sum: af7cd18c09469d3442a48fb2aa1687a1 SHA1: c9c25ffaeafadfbe7dd70e0219ec4bc26a0718d6 SHA256: 9b464db97477897d43900827d4d7934b31fca44784db623500fbb21e93513b99 Homepage: http://pygments.org/ Description-en: documentation for the Pygments Pygments is syntax highlighting package.

This package contains the documentation for Pygments in HTML and reStructuredText format.

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

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

Install python-pygments-doc Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-pygments-doc

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

sudo aptitude -y install python-pygments-doc

How To Uninstall python-pygments-doc on Ubuntu 20.04

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

sudo apt-get remove python-pygments-doc

Uninstall python-pygments-doc And Its Dependencies

To uninstall python-pygments-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-pygments-doc

Remove python-pygments-doc Configurations and Data

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

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

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

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

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

References

Summary

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