How To Install python-ply-doc on Ubuntu 20.04

In this tutorial we learn how to install python-ply-doc on Ubuntu 20.04. python-ply-doc is Lex and Yacc implementation for Python (documentation) Lex and Yacc implementation for Python (documentation)

Introduction

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

What is python-ply-doc

python-ply-doc is:

PLY is yet another implementation of lex and yacc for Python.

This package contains the documentation for Ply.

Package: python-ply-doc Architecture: all Version: 3.11-3build1 Multi-Arch: foreign Priority: optional Section: doc Source: ply Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: JCF Ploemen (jcfp) [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 309 Filename: pool/main/p/ply/python-ply-doc_3.11-3build1_all.deb Size: 62624 MD5sum: df37f722de26f06eaed3d127c45bdb9a SHA1: 37f23330b135a91e6ee6ac1db488fe28391abd91 SHA256: 15e2ffd0b16e25c4235d0f1468b48ebc53688cc11200cb690817b371e46f8271 Homepage: https://www.dabeaz.com/ply/ Description-en: Lex and Yacc implementation for Python (documentation) PLY is yet another implementation of lex and yacc for Python.

This package contains the documentation for Ply.

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

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

Install python-ply-doc Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-ply-doc

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

sudo aptitude -y install python-ply-doc

How To Uninstall python-ply-doc on Ubuntu 20.04

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

sudo apt-get remove python-ply-doc

Uninstall python-ply-doc And Its Dependencies

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

Remove python-ply-doc Configurations and Data

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

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

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

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

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

References

Summary

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