How To Install polygen on Ubuntu 22.04

In this tutorial we learn how to install polygen on Ubuntu 22.04. polygen is generator of random sentences from grammar definitions

Introduction

In this tutorial we learn how to install polygen on Ubuntu 22.04.

What is polygen

polygen is:

PolyGen is a program for generating random sentences according to a grammar definition, that is following custom syntactical and lexical rules.

Formally, it is an interpreter of a language itself designed to define languages, where to interpret means executing a source program in real time and eventually outputting its result.

Here a source program is a grammar definition, the execution consists in the exploration of such grammar by selecting a random path and the result is the sentence built on the way.

Though PolyGen is quite a serious piece of software then, what else would be more noble for it than being used as a parody tool for linguistical habits, stereotypes and trends of this foolish era?

Principles of parody are focusing a ridiculous topic and eventually abstracting its rules and schemes (here in terms of a grammar definition) by which reproducing it through the variatio device. And randomization is perfect at this purpose thanks to its purely asemantic behaviour =:)

There are three methods to install polygen on Ubuntu 22.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 polygen Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install polygen

Install polygen Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install polygen

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

sudo aptitude -y install polygen

How To Uninstall polygen on Ubuntu 22.04

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

sudo apt-get remove polygen

Uninstall polygen And Its Dependencies

To uninstall polygen and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:

sudo apt-get -y autoremove polygen

Remove polygen Configurations and Data

To remove polygen configuration and data from Ubuntu 22.04 we can use the following command:

sudo apt-get -y purge polygen

Remove polygen configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge polygen

References

Summary

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