How To Install luajit on Rocky Linux 8

In this tutorial we learn how to install luajit on Rocky Linux 8. luajit is Just-In-Time Compiler for Lua

Introduction

In this tutorial we learn how to install luajit on Rocky Linux 8.

What is luajit

LuaJIT implements the full set of language features defined by Lua 5.1. The virtual machine (VM) is API- and ABI-compatible to the standard Lua interpreter and can be deployed as a drop-in replacement.

We can use yum or dnf to install luajit on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install luajit.

Install luajit on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install luajit

Install luajit on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install luajit using yum by running the following command:

sudo yum -y install luajit

How To Uninstall luajit on Rocky Linux 8

To uninstall only the luajit package we can use the following command:

sudo dnf remove luajit

luajit Package Contents on Rocky Linux 8

/usr/bin/luajit
/usr/bin/luajit-2.1.0-beta3
/usr/lib/.build-id
/usr/lib/.build-id/3d
/usr/lib/.build-id/3d/1b2b593974605575d01647b771feecb3a8e5db
/usr/lib/.build-id/b0
/usr/lib/.build-id/b0/41b85b54f168b172a6d41926734f0c3e5f29cc
/usr/lib64/libluajit-5.1.so.2
/usr/lib64/libluajit-5.1.so.2.1.0
/usr/share/doc/luajit
/usr/share/doc/luajit/README
/usr/share/licenses/luajit
/usr/share/licenses/luajit/COPYRIGHT
/usr/share/luajit-2.1.0-beta3
/usr/share/luajit-2.1.0-beta3/jit
/usr/share/luajit-2.1.0-beta3/jit/bc.lua
/usr/share/luajit-2.1.0-beta3/jit/bcsave.lua
/usr/share/luajit-2.1.0-beta3/jit/dis_arm.lua
/usr/share/luajit-2.1.0-beta3/jit/dis_arm64.lua
/usr/share/luajit-2.1.0-beta3/jit/dis_arm64be.lua
/usr/share/luajit-2.1.0-beta3/jit/dis_mips.lua
/usr/share/luajit-2.1.0-beta3/jit/dis_mips64.lua
/usr/share/luajit-2.1.0-beta3/jit/dis_mips64el.lua
/usr/share/luajit-2.1.0-beta3/jit/dis_mipsel.lua
/usr/share/luajit-2.1.0-beta3/jit/dis_ppc.lua
/usr/share/luajit-2.1.0-beta3/jit/dis_x64.lua
/usr/share/luajit-2.1.0-beta3/jit/dis_x86.lua
/usr/share/luajit-2.1.0-beta3/jit/dump.lua
/usr/share/luajit-2.1.0-beta3/jit/p.lua
/usr/share/luajit-2.1.0-beta3/jit/v.lua
/usr/share/luajit-2.1.0-beta3/jit/vmdef.lua
/usr/share/luajit-2.1.0-beta3/jit/zone.lua
/usr/share/man/man1/luajit.1.gz

References

Summary

In this tutorial we learn how to install luajit on Rocky Linux 8 using yum and dnf.