How To Install luajit on Fedora 34

luajit is Just-In-Time Compiler for Lua Just-In-Time Compiler for Lua

Introduction

In this tutorial we learn how to install luajit on Fedora 34.

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. luajit 2.1.0 0.19beta3.fc34 x86_64 392 k luajit-2.1.0-0.19beta3.fc34.src.rpm fedora Just-In-Time Compiler for Lua http MIT 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 Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install luajit.

Install luajit on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install luajit

Install luajit on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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 Fedora 34

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

sudo dnf remove luajit

luajit Package Contents on Fedora 34

/usr/bin/luajit
/usr/bin/luajit-2.1.0-beta3
/usr/lib/.build-id
/usr/lib/.build-id/1c
/usr/lib/.build-id/1c/722bfc3847bc39f0d79ec2377dc9ecb3870894
/usr/lib/.build-id/64
/usr/lib/.build-id/64/67bec5d93512bdafb87261c032970a6b16fce4
/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
/usr/bin/luajit
/usr/bin/luajit-2.1.0-beta3
/usr/lib/.build-id
/usr/lib/.build-id/3f
/usr/lib/.build-id/3f/2720426fe7978ffa70bb6b7ad2e8866c999c52
/usr/lib/.build-id/72
/usr/lib/.build-id/72/98fdeacd88b49ae74e2572f8bfadbc49f8aabb
/usr/lib/libluajit-5.1.so.2
/usr/lib/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 Fedora 34 using yum and dnf.