How To Install yapps2 on Debian 10

Learn how to install yapps2 on Debian 10 with this tutorial. yapps2 is Yet Another Python Parser System

Introduction

In this tutorial we learn how to install yapps2 on Debian 10.

What is yapps2

yapps2 is:

YAPPS is an easy to use parser generator that is written in Python and generates Python code. There are several parser generator systems already available for Python, but this parser has different goals: Yapps is simple, very easy to use, and produces human-readable parsers.

It is not the fastest or most powerful parser. Yapps is designed to be used when regular expressions are not enough and other parser systems are too much: situations where you might otherwise write your own recursive descent parser.

This package contains several upward-compatible enhancements to the original YAPPS source:

 - handles recursive input ("include files")
 - better error reporting
 - reads input incrementally

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

Install yapps2 Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install yapps2

Install yapps2 Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install yapps2 using apt by running the following command:

sudo apt -y install yapps2

Install yapps2 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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install yapps2

How To Uninstall yapps2 on Debian 10

To uninstall only the yapps2 package we can use the following command:

sudo apt-get remove yapps2

Uninstall yapps2 And Its Dependencies

To uninstall yapps2 and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove yapps2

Remove yapps2 Configurations and Data

To remove yapps2 configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge yapps2

Remove yapps2 configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge yapps2

Dependencies

yapps2 have the following dependencies:

References

Summary

In this tutorial we learn how to install yapps2 package on Debian 10 using different package management tools: apt, apt-get and aptitude.