How To Install lua-fun on CentOS 7

In this tutorial we learn how to install lua-fun on CentOS 7. lua-fun is Functional programming library for Lua

Introduction

In this tutorial we learn how to install lua-fun on CentOS 7.

What is lua-fun

Lua Fun is a high-performance functional programming library for Lua designed with LuaJIT’s trace compiler in mind. Lua Fun provides a set of more than 50 programming primitives typically found in languages like Standard ML, Haskell, Erlang, JavaScript, Python and even Lisp. High-order functions such as map, filter, reduce, zip, etc., make it easy to write simple and efficient functional code. This package provides a module for Lua 5.3.

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

Install lua-fun on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install lua-fun

Install lua-fun 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 lua-fun using dnf by running the following command:

sudo dnf -y install lua-fun

How To Uninstall lua-fun on CentOS 7

To uninstall only the lua-fun package we can use the following command:

sudo dnf remove lua-fun

References

Summary

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