# 安装 lua

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

## 安装

```sh
sudo av install brew:lua
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install lua
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install lua
```

  证据: MacPorts ports tree: lang/lua/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- dnf (92%):

```sh
sudo dnf install lua
```

  证据: Fedora Rawhide package metadata: lua from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/13ee7b80cb813542594d4235c4a0b8695435d5ecf23dd3580bc7515ae1b6180d-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#lua
```

  证据: nixpkgs package indexes: lua from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S lua
```

  证据: Arch Linux sync databases: lua from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- apk (92%):

```sh
sudo apk add lua5.5
```

  证据: Alpine Linux edge package indexes: lua5.5 from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

### Windows

- Chocolatey (92%):

```sh
choco install Lua
```

  证据: Chocolatey community package catalog: Lua from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','librespeed-cli'

- Scoop (92%):

```sh
scoop install main/lua
```

  证据: Scoop official bucket manifest trees: bucket/lua.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id DEVCOM.Lua -e
```

  证据: Windows Package Manager source index: DEVCOM.Lua from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:lua
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/lua>
- **版本:** 5.5.0
- **来源摘要:** Powerful, lightweight programming language
- **主页:** <https://www.lua.org/>
- **上游文档:** <https://www.lua.org/>
- **许可证:** MIT
- **源码归档:** <https://www.lua.org/ftp/lua-5.5.0.tar.gz>
- **更新:** 2026-03-05T04:55:08Z
- **生成来源:** 2026-05-26T17:25:59+00:00

## 可执行文件

- lua (cli)
- lua-5.5 (cli)
- lua5.5 (cli)
- luac (cli)
- luac-5.5 (cli)
- luac5.5 (cli)
- lua (别名)
- lua-5.5 (别名)
- lua5.5 (别名)
- luac (别名)
- luac-5.5 (别名)
- luac5.5 (别名)

## 安装行为

- post-install 钩子: 未定义
- Caveats: You may also want luarocks: brew install luarocks
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 新鲜度

- 页面生成时间: 2026-05-26
- 管理器版本: 5.5.0
- 管理器更新时间: 2026-03-05
- 本地数据: ok
- 上游仓库: https://www.lua.org/
- info: Release/tag comparison is only available for GitHub repositories.

## 安全说明

doc example: interpreter runtime.

- **Geiger 风险:** yellow / high
- doc example: interpreter runtime

## 相关链接

- [nmap](https://www.automicvault.com/pkg/brew/nmap/) - Popular package that depends on this formula.
- [wireshark](https://www.automicvault.com/pkg/brew/wireshark/) - Popular package that depends on this formula.
- [luarocks](https://www.automicvault.com/pkg/brew/luarocks/) - Popular package that depends on this formula.
- [gnuplot](https://www.automicvault.com/pkg/brew/gnuplot/) - Popular package that depends on this formula.
- [texlive](https://www.automicvault.com/pkg/brew/texlive/) - Popular package that depends on this formula.
- [rpm](https://www.automicvault.com/pkg/brew/rpm/) - Popular package that depends on this formula.
- [highlight](https://www.automicvault.com/pkg/brew/highlight/) - Popular package that depends on this formula.
- [weechat](https://www.automicvault.com/pkg/brew/weechat/) - Popular package that depends on this formula.
- [lua@5.4](https://www.automicvault.com/pkg/brew/lua-5-4/) - Package name indicates the same formula family.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/)

## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- package version freshness
- package relationship graph
- cross-ecosystem install command graph
