How To Install luajit on Fedora 36

In this tutorial we learn how to install luajit in Fedora 36. luajit is Just-In-Time Compiler for Lua

Introduction

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

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 Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install luajit.

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

sudo dnf -y install luajit

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

sudo yum -y install luajit

How To Uninstall luajit on Fedora 36

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

sudo dnf remove luajit

luajit Package Contents on Fedora 36

---
title: "How To Install luajit on Fedora 36"
linkTitle: "luajit"
type: "docs"
description: "In this tutorial we learn how to install luajit in Fedora 36. luajit is Just-In-Time Compiler for Lua"
date: "2022-08-17"
lastmod: "2022-08-17"
#image: /images/fedora/36/luajit-featured.png
---

## Introduction

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

### 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 Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install luajit.

## Install luajit on Fedora 36 Using dnf

Update yum database with `dnf` using the following command.

```bash
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 Fedora 36 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 Fedora 36

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

sudo dnf remove luajit

luajit Package Contents on Fedora 36

/usr/bin/luajit
/usr/bin/luajit-2.1.0-beta3
/usr/lib/.build-id
/usr/lib/.build-id/a7
/usr/lib/.build-id/a7/4b481453cbd630a715857bc5c208be2a6cf04f
/usr/lib/.build-id/b7
/usr/lib/.build-id/b7/8875efa2fae5a805261c085bf0199fe8110fc5
/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 Fedora 36 using yum and [dnf]((/fedora/36/dnf/).

/usr/bin/luajit /usr/bin/luajit-2.1.0-beta3 /usr/lib/.build-id /usr/lib/.build-id/c2 /usr/lib/.build-id/c2/1667014af06d1efbfe656edff116f4a43eb917 /usr/lib/.build-id/f2 /usr/lib/.build-id/f2/7154103c1fa07eff0e72b44528d4c5bc7694a2 /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

* [luajit website](http://luajit.org/)

## Summary

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