Automic VaultAutomic Vault

brew

Install lua@5.4 with Homebrew, pacman, zypper, apk, apt, chocolatey, dnf, MacPorts, Nix, scoop, winget

Powerful, lightweight programming language. Version 5.4.8 via Homebrew; verified 2026-06-19.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install lua@5.4

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install lua

MacPorts ports tree · lang/lua/Portfile · source: api.github.com

Linux

Arch Linux pacmanverified · 92%
sudo pacman -S lua54

Arch Linux sync databases · lua54 · source: geo.mirror.pkgbuild.com

openSUSE zypperverified · 92%
sudo zypper install liblua5_4-5

openSUSE Tumbleweed package metadata · liblua5_4-5 · source: download.opensuse.org

Alpine Linux apkverified · 92%
sudo apk add lua5.4

Alpine Linux edge package indexes · lua5.4 · source: dl-cdn.alpinelinux.org

Debian aptverified · 92%
sudo apt install liblua5.4-0

Debian stable package indexes · liblua5.4-0 · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install compat-lua

Fedora Rawhide package metadata · compat-lua · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#lua

nixpkgs package indexes · lua · source: raw.githubusercontent.com

overview

Package summary

Powerful, lightweight programming language

Commands and aliases

  • lua-5.4
  • lua5.4
  • luac-5.4
  • luac5.4

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 1993: Lua was created at PUC-Rio.
  • 2020-06-29: Lua 5.4 was released.
  • 2020: Lua 5.4 introduced generational garbage collection mode and const/to-be-closed variables.
  • 2025-06-04: The official version history lists Lua 5.4.8 as a current 5.4 release.

Related projects

  • Lua is the unversioned current formula for the same reference implementation family.
  • LuaRocks commonly installs modules against a specific Lua minor version.
  • LuaLS and Luacheck both document support for Lua 5.4 language semantics.
  • LuaJIT remains important for Lua 5.1-family compatibility, making versioned Lua packages part of normal Lua ecosystem work.

security posture

No protected-tool coverage found yet

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.

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
lua-5.4cliglobal executable
lua5.4cliglobal executable
luac-5.4cliglobal executable
luac5.4cliglobal executable

freshness

Version and 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.

page generated2026-07-08
manager version5.4.8
manager updated2026-06-19
local dataok
upstreamnot checked
latest detectednot detected

https://www.lua.org/

  • infoRelease/tag comparison is only available for GitHub repositories.https://www.lua.org/none confidence

install metadata

Package metadata

Package keybrew:lua@5.4
Version5.4.8
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/lua@5.4
Homepagehttps://www.lua.org/
Repositoryhttps://github.com/lua/lua
Upstream docshttps://www.lua.org/manual/5.4
LicenseMIT
Source archivehttps://www.lua.org/ftp/lua-5.4.8.tar.gz
Last updated2026-06-19T12:31:49-07:00
Pulseupdated
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared
CaveatsYou may also want luarocks: brew install luarocks

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namelua@5.4
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyyes
URL Keys
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt92%

liblua5.4-0 5.4.7-1+b2

Shared library for the Lua interpreter version 5.4

http://www.lua.org

sudo apt install liblua5.4-0
  • Section: libs
  • Architecture: amd64
  • Source Package: lua5.4
  • 2 dependencies
  • installed executable or alias match
  • Matched by: Lua5 4
Debian stable package indexes · deb.debian.org · Debian stable package indexes: liblua5.4-0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt92%

liblua5.4-dev 5.4.7-1+b2

Development files for the Lua language version 5.4

http://www.lua.org

sudo apt install liblua5.4-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: lua5.4
  • 4 dependencies
  • 2 optional deps
  • installed executable or alias match
  • Matched by: Lua5 4
Debian stable package indexes · deb.debian.org · Debian stable package indexes: liblua5.4-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt92%

lua5.4 5.4.7-1+b2

Simple, extensible, embeddable programming language

http://www.lua.org

sudo apt install lua5.4
  • Section: interpreters
  • Architecture: amd64
  • Source Package: lua5.4
  • 2 dependencies
  • 1 provides
  • installed executable or alias match
  • Matched by: Lua5 4
Debian stable package indexes · deb.debian.org · Debian stable package indexes: lua5.4 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Ubuntu apt92%

liblua5.4-0 5.4.6-3build2

Shared library for the Lua interpreter version 5.4

http://www.lua.org

sudo apt install liblua5.4-0
  • Section: libs
  • Architecture: amd64
  • Source Package: lua5.4
  • 2 dependencies
  • installed executable or alias match
  • Matched by: Lua5 4
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: liblua5.4-0 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt92%

liblua5.4-dev 5.4.6-3build2

Development files for the Lua language version 5.4

http://www.lua.org

sudo apt install liblua5.4-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: lua5.4
  • 4 dependencies
  • 2 optional deps
  • installed executable or alias match
  • Matched by: Lua5 4
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: liblua5.4-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt92%

lua5.4 5.4.6-3build2

Simple, extensible, embeddable programming language

http://www.lua.org

sudo apt install lua5.4
  • Section: universe/interpreters
  • Architecture: amd64
  • 2 dependencies
  • 1 provides
  • installed executable or alias match
  • Matched by: Lua5 4
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: lua5.4 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk92%

lua5.4 5.4.8-r0

Powerful light-weight programming language

https://www.lua.org/

sudo apk add lua5.4
  • License: MIT
  • Architecture: x86_64
  • Source Package: lua5.4
  • 1 dependencies
  • 1 provides
  • installed executable or alias match
  • Matched by: Lua5 4
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: lua5.4 from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk92%

lua5.4-dbg 5.4.8-r0

Powerful light-weight programming language (debug symbols)

https://www.lua.org/

sudo apk add lua5.4-dbg
  • License: MIT
  • Architecture: x86_64
  • Source Package: lua5.4
  • 1 dependencies
  • installed executable or alias match
  • Matched by: Lua5 4
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: lua5.4-dbg from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk92%

lua5.4-dev 5.4.8-r0

Powerful light-weight programming language (development files)

https://www.lua.org/

sudo apk add lua5.4-dev
  • License: MIT
  • Architecture: x86_64
  • Source Package: lua5.4
  • 1 dependencies
  • 1 provides
  • installed executable or alias match
  • Matched by: Lua5 4
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: lua5.4-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk92%

lua5.4-doc 5.4.8-r0

Powerful light-weight programming language (documentation)

https://www.lua.org/

sudo apk add lua5.4-doc
  • License: MIT
  • Architecture: x86_64
  • Source Package: lua5.4
  • installed executable or alias match
  • Matched by: Lua5 4
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: lua5.4-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk92%

lua5.4-libs 5.4.8-r0

Lua dynamic library runtime

https://www.lua.org/

sudo apk add lua5.4-libs
  • License: MIT
  • Architecture: x86_64
  • Source Package: lua5.4
  • 1 dependencies
  • 1 provides
  • installed executable or alias match
  • Matched by: Lua5 4
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: lua5.4-libs from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
pacman92%

lua54 5.4.8-6

Powerful lightweight programming language designed for extending applications

https://www.lua.org/

sudo pacman -S lua54
  • License: MIT
  • Architecture: x86_64
  • 1 dependencies
  • package manager index match
  • Matched by: Lua54
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: lua54 from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper92%

liblua5_4-5 5.4.8-4.4

The Lua integration library

https://www.lua.org

sudo zypper install liblua5_4-5
  • License: MIT
  • Category: System/Libraries
  • Architecture: x86_64
  • Source Package: lua54
  • 3 dependencies
  • 5 provides
  • package manager index match
  • Matched by: Lua54
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: liblua5_4-5 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper92%

liblua5_4-5-32bit 5.4.8-4.4

The Lua integration library

https://www.lua.org

sudo zypper install liblua5_4-5-32bit
  • License: MIT
  • Category: System/Libraries
  • Architecture: x86_64
  • Source Package: lua54
  • 3 dependencies
  • 2 provides
  • package manager index match
  • Matched by: Lua54
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: liblua5_4-5-32bit from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper92%

lua54 5.4.8-4.4

Small Embeddable Language with Procedural Syntax

https://www.lua.org

sudo zypper install lua54
  • License: MIT
  • Category: Development/Languages/Other
  • Architecture: x86_64
  • Source Package: lua54
  • 5 dependencies
  • 3 provides
  • package manager index match
  • Matched by: Lua54
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: lua54 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper92%

lua54-devel 5.4.8-4.4

Development files for lua

https://www.lua.org

sudo zypper install lua54-devel
  • License: MIT
  • Category: Development/Libraries/C and C++
  • Architecture: x86_64
  • Source Package: lua54
  • 4 dependencies
  • 4 provides
  • package manager index match
  • Matched by: Lua54
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: lua54-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Nucleus package database
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment