Lua Installation Guide
This guide provides all the key information and getting-started instructions after a successful Lua installation via DeploySage-CLI. This installer uses the system package manager for a stable and integrated setup.
Installation Information
Below are the details for your new Lua environment.
| Item | Value |
|---|---|
| Lua Version | e.g., 5.4.4 |
| Installation Method | System Package Manager (DNF) |
| Lua Executable | /usr/bin/lua |
| LuaRocks Executable | /usr/bin/luarocks |
Lua Commands
LuaRocks Commands
Development Tools
You can start using Lua immediately.
Manage your Lua libraries (rocks) with the following commands.
The Lua ecosystem includes a compiler for checking syntax and creating bytecode.
# Check the installed Lua version
lua -v
# Run a Lua script
lua my_script.lua
# Start the Interactive Lua REPL
lua
# Execute a single line of code
lua -e 'print("Hello, Lua!")'
# Check the installed LuaRocks version
luarocks --version
# Install a rock (e.g., penlight)
luarocks install penlight
# List installed rocks
luarocks list
# Search for a rock
luarocks search json
# Remove a rock
luarocks remove penlight
# Check the syntax of a script
luac -p my_script.lua
# Compile a script to bytecode
luac -o my_script.luac my_script.lua
# Run the compiled script
lua my_script.luac