How To Install coq-menhirlib on Fedora 36

In this tutorial we learn how to install coq-menhirlib in Fedora 36. coq-menhirlib is Support library for verified Coq parsers produced by Menhir

Introduction

In this tutorial we learn how to install coq-menhirlib on Fedora 36.

What is coq-menhirlib

The Menhir parser generator, in –coq mode, can produce Coq parsers. These parsers must be linked against this library, which provides both an interpreter (which allows running the generated parser) and a validator (which allows verifying, at parser construction time, that the generated parser is correct and complete with respect to the grammar).

We can use yum or dnf to install coq-menhirlib on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install coq-menhirlib.

Install coq-menhirlib on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install coq-menhirlib

Install coq-menhirlib on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install coq-menhirlib

How To Uninstall coq-menhirlib on Fedora 36

To uninstall only the coq-menhirlib package we can use the following command:

sudo dnf remove coq-menhirlib

coq-menhirlib Package Contents on Fedora 36

/usr/lib64/ocaml/coq-menhirlib
/usr/lib64/ocaml/coq-menhirlib/META
/usr/lib64/ocaml/coq-menhirlib/dune-package
/usr/lib64/ocaml/coq/user-contrib/MenhirLib
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/.coq-native
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/.coq-native/NMenhirLib_Alphabet.cmi
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/.coq-native/NMenhirLib_Alphabet.cmx
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/.coq-native/NMenhirLib_Alphabet.cmxs
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/.coq-native/NMenhirLib_Automaton.cmi
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/.coq-native/NMenhirLib_Automaton.cmx
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/.coq-native/NMenhirLib_Automaton.cmxs
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/.coq-native/NMenhirLib_Grammar.cmi
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/.coq-native/NMenhirLib_Grammar.cmx
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/.coq-native/NMenhirLib_Grammar.cmxs
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/.coq-native/NMenhirLib_Interpreter.cmi
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/.coq-native/NMenhirLib_Interpreter.cmx
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/.coq-native/NMenhirLib_Interpreter.cmxs
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/.coq-native/NMenhirLib_Interpreter_complete.cmi
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/.coq-native/NMenhirLib_Interpreter_complete.cmx
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/.coq-native/NMenhirLib_Interpreter_complete.cmxs
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/.coq-native/NMenhirLib_Interpreter_correct.cmi
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/.coq-native/NMenhirLib_Interpreter_correct.cmx
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/.coq-native/NMenhirLib_Interpreter_correct.cmxs
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/.coq-native/NMenhirLib_Main.cmi
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/.coq-native/NMenhirLib_Main.cmx
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/.coq-native/NMenhirLib_Main.cmxs
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/.coq-native/NMenhirLib_Validator_classes.cmi
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/.coq-native/NMenhirLib_Validator_classes.cmx
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/.coq-native/NMenhirLib_Validator_classes.cmxs
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/.coq-native/NMenhirLib_Validator_complete.cmi
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/.coq-native/NMenhirLib_Validator_complete.cmx
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/.coq-native/NMenhirLib_Validator_complete.cmxs
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/.coq-native/NMenhirLib_Validator_safe.cmi
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/.coq-native/NMenhirLib_Validator_safe.cmx
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/.coq-native/NMenhirLib_Validator_safe.cmxs
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/.coq-native/NMenhirLib_Version.cmi
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/.coq-native/NMenhirLib_Version.cmx
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/.coq-native/NMenhirLib_Version.cmxs
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/Alphabet.glob
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/Alphabet.v
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/Alphabet.vo
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/Automaton.glob
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/Automaton.v
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/Automaton.vo
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/Grammar.glob
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/Grammar.v
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/Grammar.vo
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/Interpreter.glob
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/Interpreter.v
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/Interpreter.vo
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/Interpreter_complete.glob
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/Interpreter_complete.v
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/Interpreter_complete.vo
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/Interpreter_correct.glob
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/Interpreter_correct.v
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/Interpreter_correct.vo
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/Main.glob
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/Main.v
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/Main.vo
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/Validator_classes.glob
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/Validator_classes.v
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/Validator_classes.vo
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/Validator_complete.glob
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/Validator_complete.v
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/Validator_complete.vo
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/Validator_safe.glob
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/Validator_safe.v
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/Validator_safe.vo
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/Version.glob
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/Version.v
/usr/lib64/ocaml/coq/user-contrib/MenhirLib/Version.vo
/usr/share/doc/coq-menhirlib
/usr/share/doc/coq-menhirlib/CHANGES.md
/usr/share/doc/coq-menhirlib/README.md
/usr/share/licenses/coq-menhirlib
/usr/share/licenses/coq-menhirlib/LICENSE

References

Summary

In this tutorial we learn how to install coq-menhirlib on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).