Automic VaultAutomic Vault

brew

使用 Homebrew, dnf, MacPorts, Nix, pacman, chocolatey, scoop, winget, zypper, apk 安装 lua

查看 lua 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install lua

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install lua

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

Linux

Fedora dnf已验证 · 92%
sudo dnf install lua

Fedora Rawhide package metadata · lua · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#lua

nixpkgs package indexes · lua · 来源: raw.githubusercontent.com

Arch Linux pacman已验证 · 92%
sudo pacman -S lua

Arch Linux sync databases · lua · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install lua53

openSUSE Tumbleweed package metadata · lua53 · 来源: download.opensuse.org

Alpine Linux apk已验证 · 92%
sudo apk add lua5.5

Alpine Linux edge package indexes · lua5.5 · 来源: dl-cdn.alpinelinux.org

概览

软件包摘要

Powerful, lightweight programming language

命令和别名

  • lua
  • lua-5.5
  • lua5.5
  • luac
  • luac-5.5
  • luac5.5

历史

项目历史与用法

Lua is a lightweight, embeddable scripting language developed at PUC-Rio in Brazil. The Homebrew lua package represents the mainline Lua runtime and compiler, exposing the lua interpreter and luac compiler for interactive use, scripting, embedding, and bytecode compilation.

项目历史

Lua was created in 1993 at PUC-Rio as an extension and configuration language. Official Lua history material frames its evolution from a simple in-house configuration language into a widely used embeddable language with tables, lexical scoping, closures, coroutines, and a small portable C implementation.

The official reference manual emphasizes Lua's dual identity: it is both a standalone interpreter and a library designed to be embedded in host programs. This design made Lua attractive for applications that wanted scripting without carrying a large runtime. The distribution is source-first, written in clean C, and builds on common Unix-like platforms with a small Makefile-driven process.

Lua 5.x shaped the package-manager era of Lua. Lua 5.1 became historically important because LuaJIT targets the 5.1 language family; Lua 5.2, 5.3, 5.4, and 5.5 continued the standard interpreter line with API and virtual-machine changes. The official version history records Lua 5.5.0 released on 22 Dec 2025 with global-variable declarations, named vararg tables, more compact arrays, and incremental major garbage collections.

采用历史

Lua's adoption has been driven by embedding. The official manual describes using C functions to extend Lua into domain-specific languages, and the official readme says Lua is used in many products and projects around the world. Its small C implementation made it popular in games, applications, embedded systems, network software, and tools that need a scripting layer.

Package managers package Lua both as a current interpreter and as versioned formulas because ABI and language-version differences matter. The supplied package-manager facts show broad distribution across Homebrew, apk, Chocolatey, dnf, MacPorts, Nix, pacman, Scoop, winget, and zypper, while separate packages such as lua@5.4 preserve older minor series for applications and libraries that cannot jump runtime versions.

使用方式

Users run lua for interactive or batch scripts, run luac to compile Lua chunks, or embed liblua in a host application. Lua programs often use LuaRocks or distribution packages for modules, but the core runtime itself does not use a project-level config file or credentials file.

For packagers, the important usage detail is that different Lua minor versions are not ABI compatible. The official version history states that different versions can have different APIs and virtual machines, so applications embedding Lua and C libraries for Lua must be rebuilt for a new version.

为什么软件包爱好者会关心

Lua is a package-manager staple because it is simultaneously a user-facing scripting language, an embeddable C library, and the dependency underneath many other tools. Package nerds care about which minor series a formula installs, how executable names are versioned, whether luac is included, and how Lua modules find the matching runtime.

时间线

  • 1993: Lua was born at PUC-Rio in Brazil.
  • 2000: Lua 4.0 was released, closing the era covered by the first official HOPL history paper.
  • 2015: Lua 5.3 introduced integers, bitwise operators, a basic UTF-8 library, and 32/64-bit support.
  • 2020: Lua 5.4 introduced a new generational garbage collector mode and const/to-be-closed variables.
  • 2025: Lua 5.5.0 was released with global-variable declarations and other language/runtime changes.

Related projects

  • LuaJIT is a major alternative implementation associated with Lua 5.1 compatibility.
  • LuaRocks is the common Lua module package manager used alongside distribution Lua packages.
  • LuaLS and Luacheck are developer tools in the Lua ecosystem that depend on Lua language semantics.
  • PUC-Rio and Lua.org are the official institutional and project homes for the reference implementation.

安全态势

风险级别:yellow

doc example: interpreter runtime.

风险分类器

yellow 风险 · 高 置信度 · runtime

原因

  • doc example: interpreter runtime

信号

  • override:lua

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
luacli全局可执行文件
lua-5.5cli全局可执行文件
lua5.5cli全局可执行文件
luaccli全局可执行文件
luac-5.5cli全局可执行文件
luac5.5cli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本5.5.0
管理器更新时间2026-06-19
本地数据OK
上游not checked
检测到的最新版本未检测到

https://www.lua.org/

  • 信息Release/tag comparison is only available for GitHub repositories.https://www.lua.org/none 置信度

安装元数据

软件包元数据

软件包键brew:lua
版本5.5.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/lua
主页https://www.lua.org/
仓库https://github.com/lua/lua
上游文档https://www.lua.org/manual
许可证MIT
源码归档https://www.lua.org/ftp/lua-5.5.0.tar.gz
最后更新2026-06-19T12:31:49-07:00
Pulseupdated
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明
注意事项You may also want luarocks: brew install luarocks

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

lua

nix profile install nixpkgs#lua
  • normalized package name match
  • 匹配方式:Lua
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: lua from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
dnf95%

compat-lua 5.1.5-31.fc44

Powerful light-weight programming language (compat version)

http://www.lua.org/

sudo dnf install compat-lua
  • License: MIT
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: compat-lua
  • 6 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式:Lua
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: compat-lua from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

lua 5.5.0-1.fc45

Powerful light-weight programming language

https://www.lua.org/

sudo dnf install lua
  • License: MIT
  • Category: Unspecified
  • Architecture: i686
  • Source Package: lua
  • 6 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Lua
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: lua from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

lua-devel 5.5.0-1.fc45

Development files for lua

https://www.lua.org/

sudo dnf install lua-devel
  • License: MIT
  • Category: Unspecified
  • Architecture: i686
  • Source Package: lua
  • 3 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Lua
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: lua-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

lua-libs 5.5.0-1.fc45

Libraries for lua

https://www.lua.org/

sudo dnf install lua-libs
  • License: MIT
  • Category: Unspecified
  • Architecture: i686
  • Source Package: lua
  • 3 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式:Lua
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: lua-libs from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

lua-static 5.5.0-1.fc45

Static library for lua

https://www.lua.org/

sudo dnf install lua-static
  • License: MIT
  • Category: Unspecified
  • Architecture: i686
  • Source Package: lua
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Lua
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: lua-static from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

lua5.4-libs 5.5.0-1.fc45

Compat libraries for lua5.4

https://www.lua.org/

sudo dnf install lua5.4-libs
  • License: MIT
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: lua
  • 3 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式:Lua
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: lua5.4-libs from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

lua 5.5.0-2

Powerful lightweight programming language designed for extending applications

https://www.lua.org/

sudo pacman -S lua
  • License: MIT
  • Architecture: x86_64
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Lua
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: lua from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

lua53 5.3.6-4.4

Small Embeddable Language with Procedural Syntax

https://www.lua.org

sudo zypper install lua53
  • License: MIT
  • Category: Development/Languages/Other
  • Architecture: x86_64
  • Source Package: lua53
  • 5 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式:Lua
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: lua53 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

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 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式:Lua
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
zypper95%

lua55 5.5.0-1.4

Small Embeddable Language with Procedural Syntax

https://www.lua.org

sudo zypper install lua55
  • License: MIT
  • Category: Development/Languages/Other
  • Architecture: x86_64
  • Source Package: lua55
  • 4 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式:Lua
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: lua55 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

luajit 2.1.20250826-2.3

JIT compiler for Lua language

https://github.com/openresty/luajit

sudo zypper install luajit
  • License: MIT
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: luajit
  • 6 依赖
  • 6 提供
  • normalized package name match
  • 匹配方式:Lua
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: luajit from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

lua

sudo port install lua
  • normalized package name match
  • 匹配方式:Lua
MacPorts ports tree · api.github.com · MacPorts ports tree: lang/lua/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Chocolatey95%

Lua

choco install Lua
  • normalized package name match
  • 匹配方式:Lua
Chocolatey community package catalog · community.chocolatey.org · Chocolatey community package catalog: Lua from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','librespeed-cli'
Scoop95%

main/lua

scoop install main/lua
  • normalized package name match
  • 匹配方式:Lua
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/lua.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
winget95%

DEVCOM.Lua

winget install --id DEVCOM.Lua -e
  • normalized package name match
  • 匹配方式:Lua
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: DEVCOM.Lua from https://cdn.winget.microsoft.com/cache/source.msix

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment