How To Install bison on CentOS 7
Introduction
In this tutorial we learn how to install bison
on CentOS 7.
What is bison
Bison is a general purpose parser generator that converts a grammar description for an LALR(1) context-free grammar into a C program to parse that grammar. Bison can be used to develop a wide range of language parsers, from ones used in simple desk calculators to complex programming languages. Bison is upwardly compatible with Yacc, so any correctly written Yacc grammar should work with Bison without any changes. If you know Yacc, you shouldn’t have any trouble using Bison. You do need to be very proficient in C programming to be able to use Bison. Bison is only needed on systems that are used for development. If your system will be used for C development, you should install Bison.
We can use yum
or dnf
to install bison
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install bison.
Install bison on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install bison
using yum
by running the following command:
Install bison 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 bison
using dnf
by running the following command:
How To Uninstall bison on CentOS 7
To uninstall only the bison
package we can use the following command:
References
Summary
In this tutorial we learn how to install bison
on CentOS 7 using yum
and dnf
.