How To Install lemon on Ubuntu 20.04

In this tutorial we learn how to install lemon on Ubuntu 20.04. lemon is LALR(1) Parser Generator for C or C++ LALR(1) Parser Generator for C or C++

Introduction

In this tutorial we learn how to install lemon on Ubuntu 20.04.

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.

Package: lemon Architecture: amd64 Version: 3.31.1-4 Multi-Arch: foreign Priority: optional Section: universe/devel Source: sqlite3 Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Laszlo Boszormenyi (GCS) [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 288 Depends: libc6 (>= 2.14) Filename: pool/universe/s/sqlite3/lemon_3.31.1-4_amd64.deb Size: 57804 MD5sum: f4bcf92a9a9c6133246fa40048e18774 SHA1: ba815993f276683bf990cf6474fcb93a840488be SHA256: 34e3c930da462393a2bf17a9a4e254ab9dc297588dfe2b74c0a6353022cb2e9c Homepage: https://www.sqlite.org/ Description-en: LALR(1) Parser Generator for C or C++ 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 Ubuntu 20.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 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 Ubuntu. 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 Ubuntu 20.04

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 Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove lemon

Remove lemon Configurations and Data

To remove lemon configuration and data from Ubuntu 20.04 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

References

Summary

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