How To Install lua on Fedora 34

lua is Powerful light-weight programming language Powerful light-weight programming language

Introduction

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

What is lua

Lua is a powerful light-weight programming language designed for extending applications. Lua is also frequently used as a general-purpose, stand-alone language. Lua is free software. Lua combines simple procedural syntax with powerful data description constructs based on associative arrays and extensible semantics. Lua is dynamically typed, interpreted from bytecodes, and has automatic memory management with garbage collection, making it ideal for configuration, scripting, and rapid prototyping. lua 5.4.3 1.fc34 x86_64 189 k lua-5.4.3-1.fc34.src.rpm updates Powerful light-weight programming language http MIT Lua is a powerful light-weight programming language designed for extending applications. Lua is also frequently used as a general-purpose, stand-alone language. Lua is free software. Lua combines simple procedural syntax with powerful data description constructs based on associative arrays and extensible semantics. Lua is dynamically typed, interpreted from bytecodes, and has automatic memory management with garbage collection, making it ideal for configuration, scripting, and rapid prototyping.

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

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

sudo dnf -y install lua

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

sudo yum -y install lua

How To Uninstall lua on Fedora 34

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

sudo dnf remove lua

lua Package Contents on Fedora 34

/usr/bin/lua
/usr/bin/luac
/usr/lib/.build-id
/usr/lib/.build-id/0a
/usr/lib/.build-id/0a/3e87246d4d6042db50649943284f23fbfc58e0
/usr/lib/.build-id/45
/usr/lib/.build-id/45/a832b9057231161e7f33d7ebb3517a6ea118fe
/usr/share/doc/lua
/usr/share/doc/lua/README
/usr/share/doc/lua/contents.html
/usr/share/doc/lua/index.css
/usr/share/doc/lua/logo.gif
/usr/share/doc/lua/lua.css
/usr/share/doc/lua/manual.css
/usr/share/doc/lua/manual.html
/usr/share/doc/lua/osi-certified-72x60.png
/usr/share/doc/lua/readme.html
/usr/share/licenses/lua
/usr/share/licenses/lua/mit.txt
/usr/share/man/man1/lua.1.gz
/usr/share/man/man1/luac.1.gz
/usr/bin/lua
/usr/bin/luac
/usr/lib/.build-id
/usr/lib/.build-id/25
/usr/lib/.build-id/25/8b7f23d5fe74c547c0ede1bc08a5a47f21335b
/usr/lib/.build-id/a6
/usr/lib/.build-id/a6/49588d39b3649b1be32ff3c1dcb7de2475f8b9
/usr/share/doc/lua
/usr/share/doc/lua/README
/usr/share/doc/lua/contents.html
/usr/share/doc/lua/index.css
/usr/share/doc/lua/logo.gif
/usr/share/doc/lua/lua.css
/usr/share/doc/lua/manual.css
/usr/share/doc/lua/manual.html
/usr/share/doc/lua/osi-certified-72x60.png
/usr/share/doc/lua/readme.html
/usr/share/licenses/lua
/usr/share/licenses/lua/mit.txt
/usr/share/man/man1/lua.1.gz
/usr/share/man/man1/luac.1.gz
/usr/bin/lua
/usr/bin/luac
/usr/lib/.build-id
/usr/lib/.build-id/37
/usr/lib/.build-id/37/7a6bb45b682737d78f8846916c9667fc8d22e7
/usr/lib/.build-id/77
/usr/lib/.build-id/77/5a8143751960a7b1ce10b6cac40690329d2cea
/usr/share/doc/lua
/usr/share/doc/lua/README
/usr/share/doc/lua/contents.html
/usr/share/doc/lua/index.css
/usr/share/doc/lua/logo.gif
/usr/share/doc/lua/lua.css
/usr/share/doc/lua/manual.css
/usr/share/doc/lua/manual.html
/usr/share/doc/lua/osi-certified-72x60.png
/usr/share/doc/lua/readme.html
/usr/share/licenses/lua
/usr/share/licenses/lua/mit.txt
/usr/share/man/man1/lua.1.gz
/usr/share/man/man1/luac.1.gz
/usr/bin/lua
/usr/bin/luac
/usr/lib/.build-id
/usr/lib/.build-id/92
/usr/lib/.build-id/92/bc9f31655ce55f58ebff493900edbd6b4c787b
/usr/lib/.build-id/be
/usr/lib/.build-id/be/61acbd442d9530f096736149f4da243ee455ad
/usr/share/doc/lua
/usr/share/doc/lua/README
/usr/share/doc/lua/contents.html
/usr/share/doc/lua/index.css
/usr/share/doc/lua/logo.gif
/usr/share/doc/lua/lua.css
/usr/share/doc/lua/manual.css
/usr/share/doc/lua/manual.html
/usr/share/doc/lua/osi-certified-72x60.png
/usr/share/doc/lua/readme.html
/usr/share/licenses/lua
/usr/share/licenses/lua/mit.txt
/usr/share/man/man1/lua.1.gz
/usr/share/man/man1/luac.1.gz

References

Summary

In this tutorial we learn how to install lua on Fedora 34 using yum and dnf.