# 使用 Homebrew 安装 luaver

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

## 安装

```sh
sudo av install brew:luaver
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install luaver
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:luaver
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/luaver>
- **版本:** 1.1.0
- **来源摘要:** Manage and switch between versions of Lua, LuaJIT, and Luarocks
- **主页:** <https://github.com/DhavalKapil/luaver>
- **仓库:** <https://github.com/DhavalKapil/luaver>
- **许可证:** MIT
- **源码归档:** <https://github.com/DhavalKapil/luaver/archive/refs/tags/v1.1.0.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- luaver (cli)
- luaver (别名)

## 依赖

- wget

## 安装行为

- post-install 钩子: 未定义
- 注意事项: Add the following at the end of the correct file yourself: if which luaver > /dev/null; then . `which luaver`; fi
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.1.0
- 本地数据: OK
- 上游仓库: https://github.com/DhavalKapil/luaver
- 检测到的最新版本: v1.1.0 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

luaver is a shell-based version manager for Lua, LuaJIT, and LuaRocks. It gives Lua developers a way to install and switch runtimes and package-manager versions without relying only on system packages.

### 项目历史

The project README describes luaver as a Lua Version Manager that manages and switches between versions of Lua, LuaJIT, and LuaRocks. Its feature set is intentionally narrow: install or uninstall versions, switch versions, keep Lua and LuaRocks trees consistent, and allow different terminal sessions to use different environments.

### 采用历史

luaver is a niche developer convenience tool rather than a broad platform dependency. Its adoption is visible mainly through its GitHub repository, Homebrew formula, and author documentation; the input metadata lists Homebrew as its package-manager surface.

### 使用方式

Typical usage is shell-driven: install a Lua version, install a LuaJIT or LuaRocks version, switch with luaver use, use-luajit, or use-luarocks, and optionally set defaults for new terminal sessions.

It is most useful when a developer needs to test Lua libraries against several Lua, LuaJIT, and LuaRocks combinations while keeping rock trees and shell state separated.

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

luaver matters to package nerds because Lua's ecosystem has several actively used runtime versions plus LuaJIT, and LuaRocks state depends on the chosen runtime. A small version manager reduces global-package drift during testing.

Its ceiling is also clear: it is a convenience wrapper around building and switching Lua-family tools, not a universal package manager. That simplicity is exactly why it remains easy to package.

### 时间线

- 2016: The luaver author publishes Lua Version Manager documentation.
- 2020s: The GitHub project remains the official source and Homebrew packages the tool.

### Related projects

- Lua is the main runtime luaver installs and switches.
- LuaJIT is the alternate runtime luaver supports.
- LuaRocks is the package manager luaver installs and keeps version-associated with Lua runtimes.

### 来源

- <https://dhavalkapil.com/blogs/Lua-Version-Manager/>
- <https://github.com/DhavalKapil/luaver>
- source_facts.package-manager


## 安全说明

generalized runtime or code generation signal.

- **Geiger 风险:** yellow / 中
- generalized runtime or code generation signal

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** luaver
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [wget](https://pkg.so/zh-hans/brew/wget/) - Runtime dependency declared by Homebrew.
- [asdf](https://pkg.so/zh-hans/brew/asdf/) - Shares pkgdb curated category or tags: cli, developer-tools, version-manager.
- [juliaup](https://pkg.so/zh-hans/brew/juliaup/) - Shares pkgdb curated category or tags: cli, developer-tools, version-manager.
- [bob](https://pkg.so/zh-hans/brew/bob/) - Shares pkgdb curated category or tags: cli, developer-tools, version-manager.
- [phpbrew](https://pkg.so/zh-hans/brew/phpbrew/) - Shares pkgdb curated category or tags: cli, developer-tools, version-manager.
- [scalaenv](https://pkg.so/zh-hans/brew/scalaenv/) - Shares pkgdb curated category or tags: cli, developer-tools, version-manager.
- [nave](https://pkg.so/zh-hans/brew/nave/) - Shares pkgdb curated category or tags: cli, developer-tools, version-manager.
- [ry](https://pkg.so/zh-hans/brew/ry/) - Shares pkgdb curated category or tags: cli, developer-tools, version-manager.
- [neovim](https://pkg.so/zh-hans/brew/neovim/) - Shares pkgdb curated category or tags: cli, developer-tools, lua.
- [xcodes](https://pkg.so/zh-hans/brew/xcodes/) - Local package facts share a topical domain. Shared terms: between, cli, developer, developer-tools, manager.

## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
