# lua を Homebrew, dnf, MacPorts, Nix, pacman, chocolatey, scoop, winget, zypper, apk でインストール

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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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

- zypper (92%):

```sh
sudo zypper install lua53
```

  証拠: openSUSE Tumbleweed package metadata: lua53 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

- 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','logexpert'

- 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
- **バージョン:** 5.5.0
- **ソース概要:** Powerful, lightweight programming language
- **ホームページ:** <https://www.lua.org/>
- **最終更新:** 2026-06-19T12:31:49-07:00
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- lua (エイリアス)
- lua-5.5 (エイリアス)
- lua5.5 (エイリアス)
- luac (エイリアス)
- luac-5.5 (エイリアス)
- luac5.5 (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 5.5.0
## プロジェクトの歴史と使われ方

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.

### ソース

- <https://raw.githubusercontent.com/lua/lua/master/README.md>
- <https://www.lua.org/history.html>
- <https://www.lua.org/manual/5.5/manual.html>
- <https://www.lua.org/manual/5.5/readme.html>
- <https://www.lua.org/versions.html>
- source_facts.package-manager


## セキュリティノート

doc example: interpreter runtime.

- **Geiger リスク:** yellow / 高
- doc example: interpreter runtime

## 他のパッケージマネージャ記録

- Nix - lua: normalized package name match | nixpkgs package indexes: lua from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- dnf - compat-lua - 5.1.5-32.fc45: normalized package name match | Fedora Rawhide package metadata: compat-lua from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Powerful light-weight programming language (compat version) | http://www.lua.org/
- dnf - lua - 5.5.0-3.fc45: normalized package name match | Fedora Rawhide package metadata: lua from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Powerful light-weight programming language | https://www.lua.org/
- dnf - lua-devel - 5.5.0-3.fc45: normalized package name match | Fedora Rawhide package metadata: lua-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development files for lua | https://www.lua.org/
- dnf - lua-libs - 5.5.0-3.fc45: normalized package name match | Fedora Rawhide package metadata: lua-libs from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Libraries for lua | https://www.lua.org/
- dnf - lua-static - 5.5.0-3.fc45: normalized package name match | Fedora Rawhide package metadata: lua-static from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Static library for lua | https://www.lua.org/
- dnf - lua5.4-libs - 5.5.0-3.fc45: normalized package name match | Fedora Rawhide package metadata: lua5.4-libs from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Compat libraries for lua5.4 | https://www.lua.org/
- pacman - lua - 5.5.0-2: normalized package name match | Arch Linux sync databases: lua from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Powerful lightweight programming language designed for extending applications | https://www.lua.org/
- zypper - lua53 - 5.3.6-4.6: normalized package name match | openSUSE Tumbleweed package metadata: lua53 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Small Embeddable Language with Procedural Syntax | https://www.lua.org
- zypper - lua54 - 5.4.8-4.6: normalized package name match | openSUSE Tumbleweed package metadata: lua54 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Small Embeddable Language with Procedural Syntax | https://www.lua.org
- zypper - lua55 - 5.5.0-1.6: normalized package name match | openSUSE Tumbleweed package metadata: lua55 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Small Embeddable Language with Procedural Syntax | https://www.lua.org
- zypper - luajit - 2.1.20250826-3.3: normalized package name match | openSUSE Tumbleweed package metadata: luajit from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | JIT compiler for Lua language | https://github.com/openresty/luajit
- MacPorts - lua: normalized package name match | MacPorts ports tree: lang/lua/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - Lua: normalized package name match | Chocolatey community package catalog: Lua from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','logexpert'
- Scoop - main/lua: normalized package name match | Scoop official bucket manifest trees: bucket/lua.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - DEVCOM.Lua: normalized package name match | Windows Package Manager source index: DEVCOM.Lua from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

View the package source record on GitHub. [combined/lua.yml](https://github.com/mxcl/pkgdb/blob/main/combined/lua.yml)


## ソース

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
