How To Install bison-runtime on CentOS 7

In this tutorial we learn how to install bison-runtime on CentOS 7. bison-runtime is Runtime support files used by Bison-generated parsers

Introduction

In this tutorial we learn how to install bison-runtime on CentOS 7.

What is bison-runtime

The bison-runtime package contains files used at runtime by parsers that Bison generates. Packages whose binaries contain parsers generated by Bison should depend on bison-runtime to ensure that these files are available. See the Internationalization in the Bison manual section for more information.

We can use yum or dnf to install bison-runtime on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install bison-runtime.

Install bison-runtime on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install bison-runtime using yum by running the following command:

sudo yum -y install bison-runtime

Install bison-runtime 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.

sudo dnf makecache

After updating yum database, We can install bison-runtime using dnf by running the following command:

sudo dnf -y install bison-runtime

How To Uninstall bison-runtime on CentOS 7

To uninstall only the bison-runtime package we can use the following command:

sudo dnf remove bison-runtime

References

Summary

In this tutorial we learn how to install bison-runtime on CentOS 7 using yum and dnf.