pkg.sopackage field notes

brew / 排名 244

使用 Homebrew 安装 lua

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install lua

provider-native install command

概览

软件包摘要

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

安装行为

  • 未记录 Homebrew bottle 元数据。

建议审查

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

可执行文件

已安装的可执行文件

命令类型暴露范围备注
lua可执行文件已索引可执行文件从本地可执行文件索引发现。
lua-5.5可执行文件已索引可执行文件从本地可执行文件索引发现。
lua5.5可执行文件已索引可执行文件从本地可执行文件索引发现。
luac可执行文件已索引可执行文件从本地可执行文件索引发现。
luac-5.5可执行文件已索引可执行文件从本地可执行文件索引发现。
luac5.5可执行文件已索引可执行文件从本地可执行文件索引发现。

新鲜度

版本和新鲜度

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

页面生成时间2026-08-03
管理器版本5.5.0
管理器更新时间2026-06-19
本地数据未知
上游不可用
检测到的最新版本未检测到
  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:lua
版本5.5.0
软件包管理器Homebrew
主页https://www.lua.org/
最后更新2026-06-19T12:31:49-07:00
Pulseupdated
Bottle未记录
服务未声明

来源线索

由仓库数据生成

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

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • curated package history
  • pkgdb category and tag curation