How To Install lemon on Debian 10
Introduction
In this tutorial we learn how to install lemon
on Debian 10.
What is lemon
lemon is:
Lemon is an LALR(1) parser generator for C or C++. It does the same job as bison and yacc. But lemon is not another bison or yacc clone. It uses a different grammar syntax which is designed to reduce the number of coding errors. Lemon also uses a more sophisticated parsing engine that is faster than yacc and bison and which is both reentrant and thread-safe. Furthermore, Lemon implements features that can be used to eliminate resource leaks, making is suitable for use in long-running programs such as graphical user interfaces or embedded controllers.
There are three methods to install lemon
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 lemon Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install lemon
using apt-get
by running the following command:
sudo apt-get -y install lemon
Install lemon Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install lemon
using apt
by running the following command:
sudo apt -y install lemon
Install lemon 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 lemon
using aptitude
by running the following command:
sudo aptitude -y install lemon
How To Uninstall lemon on Debian 10
To uninstall only the lemon
package we can use the following command:
sudo apt-get remove lemon
Uninstall lemon And Its Dependencies
To uninstall lemon
and its dependencies that are no longer needed by Debian 10, we can use the command below:
sudo apt-get -y autoremove lemon
Remove lemon Configurations and Data
To remove lemon
configuration and data from Debian 10 we can use the following command:
sudo apt-get -y purge lemon
Remove lemon configuration, data, and all of its dependencies
We can use the following command to remove lemon
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge lemon
Dependencies
lemon have the following dependencies:
References
Summary
In this tutorial we learn how to install lemon
package on Debian 10 using different package management tools: apt
, apt-get
and aptitude
.