# 使用 Homebrew 安装 luaver

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install luaver
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:luaver
- **软件包管理器:** Homebrew
- **版本:** 1.1.0
- **来源摘要:** Manage and switch between versions of Lua, LuaJIT, and Luarocks
- **主页:** <https://github.com/DhavalKapil/luaver>
- **仓库:** <https://github.com/DhavalKapil/luaver>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- luaver (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.1.0
## 项目历史与用法

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


## 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
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
