How To Install yapps2-runtime on Ubuntu 18.04

In this tutorial we learn how to install yapps2-runtime on Ubuntu 18.04. yapps2-runtime is Yet Another Python Parser System

Introduction

In this tutorial we learn how to install yapps2-runtime on Ubuntu 18.04.

What is yapps2-runtime

yapps2-runtime 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.

This package contains the Python runtime support for parsers generated with yapps2.

There are three methods to install yapps2-runtime on Ubuntu 18.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 yapps2-runtime 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-runtime using apt-get by running the following command:

sudo apt-get -y install yapps2-runtime

Install yapps2-runtime Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install yapps2-runtime

Install yapps2-runtime 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 yapps2-runtime using aptitude by running the following command:

sudo aptitude -y install yapps2-runtime

How To Uninstall yapps2-runtime on Ubuntu 18.04

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

sudo apt-get remove yapps2-runtime

Uninstall yapps2-runtime And Its Dependencies

To uninstall yapps2-runtime and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove yapps2-runtime

Remove yapps2-runtime Configurations and Data

To remove yapps2-runtime configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge yapps2-runtime

Remove yapps2-runtime configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge yapps2-runtime

References

Summary

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