macOS
brew install lua@5.4local Homebrew formula metadata
sudo port install luaMacPorts ports tree · lang/lua/Portfile · source: api.github.com
brew
Powerful, lightweight programming language. Version 5.4.8 via Homebrew; verified 2026-06-19.
install
brew install lua@5.4local Homebrew formula metadata
sudo port install luaMacPorts ports tree · lang/lua/Portfile · source: api.github.com
sudo pacman -S lua54Arch Linux sync databases · lua54 · source: geo.mirror.pkgbuild.com
sudo zypper install liblua5_4-5openSUSE Tumbleweed package metadata · liblua5_4-5 · source: download.opensuse.org
sudo apk add lua5.4Alpine Linux edge package indexes · lua5.4 · source: dl-cdn.alpinelinux.org
sudo apt install liblua5.4-0Debian stable package indexes · liblua5.4-0 · source: deb.debian.org
sudo dnf install compat-luaFedora Rawhide package metadata · compat-lua · source: dl.fedoraproject.org
nix profile install nixpkgs#luanixpkgs package indexes · lua · source: raw.githubusercontent.com
choco install LuaChocolatey community package catalog · Lua · source: community.chocolatey.org
scoop install main/luaScoop official bucket manifest trees · bucket/lua.json · source: api.github.com
winget install --id DEVCOM.Lua -eWindows Package Manager source index · DEVCOM.Lua · source: cdn.winget.microsoft.com
overview
Powerful, lightweight programming language
history
Lua 5.4 is the Homebrew versioned package for the Lua 5.4 runtime line. It exists because Lua minor versions can differ in API, ABI, virtual machine, and language behavior, so package managers keep older supported series available beside the current lua formula.
Lua 5.4 belongs to the long-running Lua 5.x family from PUC-Rio and Lua.org. The official version history says Lua 5.4 was released on 29 Jun 2020, with a new generational garbage collection mode plus const and to-be-closed variables as its main new features.
The official Lua 5.4 manual describes Lua as a lightweight embeddable language implemented as a clean C library plus the standalone lua host program. In the 5.4 line, those long-standing Lua traits continued while the runtime refined memory-management and resource-finalization behavior.
The versioned 5.4 package is distinct from the unversioned lua package because applications embedding Lua, C modules, and precompiled Lua chunks may be tied to a specific minor version. The official version history explicitly warns that different Lua versions are really different: APIs may change, there is no ABI compatibility, and virtual machines are likely to differ.
Lua 5.4 became the stable post-5.3 runtime line for projects that wanted standard Lua while avoiding a jump to later language changes. The supplied package-manager facts show dedicated Lua 5.4 packaging across apk, Homebrew, Debian, Ubuntu, pacman, and other ecosystems, reflecting the common distribution habit of keeping several Lua runtimes installable at once.
For downstream packages, Lua 5.4 support also mattered because developer tools such as Luacheck and LuaLS had to understand 5.4 syntax and standard-library definitions. Luacheck's changelog records Lua 5.4 support work in 2020, and LuaLS now documents support for Lua 5.4 alongside other Lua versions.
Users install lua@5.4 when a script, embedded application, or Lua C module expects the 5.4 API or executable naming. The package provides lua and luac variants for the 5.4 series and does not require a runtime configuration or credentials file.
Packagers treat lua@5.4 as a compatibility runtime. It lets formulas pin to Lua 5.4 while the unversioned lua package moves forward, reducing accidental ABI and behavior changes for embedded users.
lua@5.4 is package-nerd material because it is all about versioning discipline. The package preserves an ABI and language line that other packages can depend on, which is exactly why language runtimes often live in both current and versioned formulas.
security posture
No matching local secret-handling manifest was found for lua@5.4. Nucleus package metadata is still published here so future coverage has a stable package URL.
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
lua-5.4 | cli | global executable | |
lua5.4 | cli | global executable | |
luac-5.4 | cli | global executable | |
luac5.4 | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
install metadata
| Package key | brew:lua@5.4 |
|---|---|
| Version | 5.4.8 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/lua@5.4 |
| Homepage | https://www.lua.org/ |
| Repository | https://github.com/lua/lua |
| Upstream docs | https://www.lua.org/manual/5.4 |
| License | MIT |
| Source archive | https://www.lua.org/ftp/lua-5.4.8.tar.gz |
| Last updated | 2026-06-19T12:31:49-07:00 |
| Pulse | updated |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
| Caveats | You may also want luarocks: brew install luarocks |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | lua@5.4 |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | yes |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
liblua5.4-0 5.4.7-1+b2
Shared library for the Lua interpreter version 5.4
sudo apt install liblua5.4-0liblua5.4-dev 5.4.7-1+b2
Development files for the Lua language version 5.4
sudo apt install liblua5.4-devlua5.4 5.4.7-1+b2
Simple, extensible, embeddable programming language
sudo apt install lua5.4liblua5.4-0 5.4.6-3build2
Shared library for the Lua interpreter version 5.4
sudo apt install liblua5.4-0liblua5.4-dev 5.4.6-3build2
Development files for the Lua language version 5.4
sudo apt install liblua5.4-devlua5.4 5.4.6-3build2
Simple, extensible, embeddable programming language
sudo apt install lua5.4lua5.4 5.4.8-r0
Powerful light-weight programming language
sudo apk add lua5.4lua5.4-dbg 5.4.8-r0
Powerful light-weight programming language (debug symbols)
sudo apk add lua5.4-dbglua5.4-dev 5.4.8-r0
Powerful light-weight programming language (development files)
sudo apk add lua5.4-devlua5.4-doc 5.4.8-r0
Powerful light-weight programming language (documentation)
sudo apk add lua5.4-doclua5.4-libs 5.4.8-r0
Lua dynamic library runtime
sudo apk add lua5.4-libslua54 5.4.8-6
Powerful lightweight programming language designed for extending applications
sudo pacman -S lua54liblua5_4-5 5.4.8-4.4
The Lua integration library
sudo zypper install liblua5_4-5liblua5_4-5-32bit 5.4.8-4.4
The Lua integration library
sudo zypper install liblua5_4-5-32bitlua54 5.4.8-4.4
Small Embeddable Language with Procedural Syntax
sudo zypper install lua54lua54-devel 5.4.8-4.4
Development files for lua
sudo zypper install lua54-develsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.