How To Install lua-bit32 on CentOS 7

In this tutorial we learn how to install lua-bit32 on CentOS 7. lua-bit32 is Backport of Lua bit manipulation library introduced in 5.2

Introduction

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

What is lua-bit32

bit32 is the native Lua 5.2 bit manipulation library, in the version from Lua 5.3; it is compatible with Lua 5.1, 5.2 and 5.3.

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

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

sudo yum -y install lua-bit32

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

sudo dnf -y install lua-bit32

How To Uninstall lua-bit32 on CentOS 7

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

sudo dnf remove lua-bit32

References

Summary

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