# 使用 Homebrew 安装 brew-gem

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

## 安装

```sh
sudo av install brew:brew-gem
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install brew-gem
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:brew-gem
- **软件包管理器:** Homebrew
- **版本:** 1.3.4
- **来源摘要:** Install RubyGems as Homebrew formulae
- **主页:** <https://github.com/sportngin/brew-gem>
- **仓库:** <https://github.com/sportngin/brew-gem>
- **最后更新:** 2026-05-27T00:14:05Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- brew-gem (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

brew-gem is a small bridge between RubyGems and Homebrew: it generates Homebrew formulae that install Ruby gems as self-contained Cellar packages.

### 项目历史

The sportngin/brew-gem repository was created in February 2014, with early v0.2.x releases following within weeks. The README explains the core idea: generate a stub formula that runs `gem install` into the formula prefix so the resulting package and dependencies live under Homebrew's Cellar.

The project explicitly limits its purpose to standalone Ruby command-line tools, not development libraries. That philosophy made it a pragmatic workaround for Ruby CLI tools that users wanted to manage with `brew list`, `brew upgrade`, and Homebrew-style uninstalls.

### 采用历史

brew-gem remained a niche packaging helper but has persisted unusually long for a glue tool. GitHub metadata and Homebrew formula data show current activity and a stable 1.3.x line, while Homebrew analytics reported several thousand installs over the prior year at lookup time.

### 使用方式

Users run commands such as `brew gem install heroku`, optionally choosing a specific gem version or Homebrew-installed Ruby. Installed gems are listed with a `gem-` prefix, making Ruby CLI tools visible to normal Homebrew workflows.

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

brew-gem matters because it captures a recurring package-manager problem: language package managers are good at libraries, while OS/package managers are good at executable lifecycle management. It is a compact example of turning language-level packages into system-level formulae without maintaining a formula by hand for every gem.

### 时间线

- 2014: Repository created and v0.2.0 released.
- 2014: v0.3.0 released with early Homebrew integration improvements.
- 2018: v0.9.0 release addressed compatibility with newer Homebrew behavior.
- 2026: Homebrew stable version reported as 1.3.4.

### Related projects

- RubyGems supplies the upstream packages that brew-gem wraps.
- Homebrew supplies the formula and Cellar lifecycle model.
- Shell completion handling in the README links the tool to bash and zsh completion packaging.

### 来源

- <https://formulae.brew.sh/api/formula/brew-gem.json>
- <https://github.com/sportngin/brew-gem>
- <https://raw.githubusercontent.com/sportngin/brew-gem/master/README.md>


## 安全说明

没有找到 brew-gem 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## Combined YAML source

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


## 来源

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