How To Install polygen-data on Debian 9
Introduction
In this tutorial we learn how to install polygen-data
on Debian 9.
What is polygen-data
polygen-data 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.
This package contains various grammar files suited for polygen.
There are three methods to install polygen-data
on Debian 9. 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-data 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-data
using apt-get
by running the following command:
sudo apt-get -y install polygen-data
Install polygen-data Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install polygen-data
using apt
by running the following command:
sudo apt -y install polygen-data
Install polygen-data 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 polygen-data
using aptitude
by running the following command:
sudo aptitude -y install polygen-data
How To Uninstall polygen-data on Debian 9
To uninstall only the polygen-data
package we can use the following command:
sudo apt-get remove polygen-data
Uninstall polygen-data And Its Dependencies
To uninstall polygen-data
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove polygen-data
Remove polygen-data Configurations and Data
To remove polygen-data
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge polygen-data
Remove polygen-data configuration, data, and all of its dependencies
We can use the following command to remove polygen-data
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge polygen-data
Dependencies
polygen-data have the following dependencies:
References
Summary
In this tutorial we learn how to install polygen-data
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.