How To Install lemon on CentOS 7
Introduction
In this tutorial we learn how to install lemon
on CentOS 7.
What is lemon
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.
We can use yum
or dnf
to install lemon
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install lemon.
Install lemon on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install lemon
using yum
by running the following command:
Install lemon on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
After updating yum database, We can install lemon
using dnf
by running the following command:
How To Uninstall lemon on CentOS 7
To uninstall only the lemon
package we can use the following command:
References
Summary
In this tutorial we learn how to install lemon
on CentOS 7 using yum
and dnf
.