# 使用 Homebrew, winget 安装 ubi

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

## 安装

```sh
sudo av install brew:ubi
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install ubi
```

  证据: local Homebrew formula metadata

### Windows

- winget (92%):

```sh
winget install --id houseabsolute.ubi -e
```

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

## 软件包事实

- **软件包键:** brew:ubi
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/ubi>
- **版本:** 0.10.0
- **来源摘要:** Universal Binary Installer
- **主页:** <https://github.com/houseabsolute/ubi>
- **仓库:** <https://github.com/houseabsolute/ubi>
- **许可证:** Apache-2.0 OR MIT
- **源码归档:** <https://github.com/houseabsolute/ubi/archive/refs/tags/v0.10.0.tar.gz>
- **最后更新:** 2026-07-26T21:15:45Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- ubi (cli)
- ubi (别名)

## 依赖

- xz

## 构建依赖

- pkgconf
- rust

## macOS 提供的库

- bzip2

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.10.0
- 管理器更新时间: 2026-07-26
- 本地数据: OK
- 上游仓库: https://github.com/houseabsolute/ubi
- 检测到的最新版本: v0.10.0 (当前)
## 项目历史与用法

ubi, the Universal Binary Installer, is a small CLI for installing prebuilt binaries from GitHub releases and similar release pages. It belongs to the newer generation of package-helper tools that automate the common shell-script pattern of selecting the right OS and CPU asset, downloading it, and putting the binary on PATH.

### 项目历史

The official repository describes ubi as the Universal Binary Installer. Its release page shows a 0.x project with signed tags, many platform-specific release assets, and continuing changes around asset selection, platform matching, Android support, libc matching, private-repository downloads, and supply-chain safety.

The project is maintained by Dave Rolsky under the houseabsolute namespace and is distributed under Apache-2.0 OR MIT in the batch input. Its own releases are themselves a demonstration of the problem it solves: the v0.9.0 release publishes many per-platform archives and checksum assets.

### 采用历史

ubi is adopted in package-nerd workflows where users want a lightweight installer for GitHub-release binaries without writing a custom curl, tar, and grep script for each tool. The batch input lists Homebrew and winget availability, reflecting its cross-platform installer niche.

Release notes show the project responding to real packaging edge cases: asset names that contain misleading numbers, Android targets, musl versus glibc Linux assets, private repositories, and minimum release age to reduce supply-chain risk.

### 使用方式

ubi is used to pick a matching release artifact for the current platform, download it, and install the contained binary. Its package-nerd use case is bootstrapping CLI tools from upstream release assets when a native package does not exist or when the user wants upstream's current binary.

The v0.9.0 release added a --min-age-days flag to consider only releases at least a specified age, explicitly framed by the project as useful for mitigating supply-chain attacks.

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

ubi matters because GitHub Releases became an unofficial binary distribution layer for many small CLIs. A generic installer for those releases sits between full package managers and one-off install scripts.

For Homebrew users, the amusing recursion is that a package manager can install ubi, and ubi can then install tools that are not packaged or are wanted directly from upstream release artifacts.

### 时间线

- 2024-2026: The visible release history is in the 0.x series, with repeated changes around release-asset matching and platform support.
- 2026: v0.9.0 is released with --min-age-days for release-age filtering.

### Related projects

- GitHub Releases are the primary ecosystem surface for ubi's installer model.
- Homebrew and winget provide native package-manager distribution for ubi itself according to the batch input.

### 来源

- <https://github.com/houseabsolute/ubi identifies the project as The Universal Binary Installer.>
- <https://github.com/houseabsolute/ubi/releases documents release history, platform assets, asset-matching changes, private-repository handling, Android support, libc matching, and the --min-age-days supply-chain feature.>
- source_facts.package-manager identifies Homebrew and winget availability.


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** ubi
- **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

## 其他软件包管理器记录

- winget - houseabsolute.ubi: normalized package name match | Windows Package Manager source index: houseabsolute.ubi from https://cdn.winget.microsoft.com/cache/source.msix


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [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.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [xz](https://pkg.so/zh-hans/brew/xz/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [rust](https://pkg.so/zh-hans/brew/rust/) - Build dependency declared by Homebrew.
- [eget](https://pkg.so/zh-hans/brew/eget/) - Shares pkgdb curated category or tags: binary-installer, cli, developer-tools, github-releases.
- [xcodes](https://pkg.so/zh-hans/brew/xcodes/) - Shares pkgdb curated category or tags: cli, developer-tools, installer.
- [ghr](https://pkg.so/zh-hans/brew/ghr/) - Shares pkgdb curated category or tags: cli, developer-tools, github-releases.
- [cargo-binstall](https://pkg.so/zh-hans/brew/cargo-binstall/) - Shares pkgdb curated category or tags: binary-installer, cli, developer-tools.
- [swiftly](https://pkg.so/zh-hans/brew/swiftly/) - Shares pkgdb curated category or tags: cli, developer-tools, installer.
- [juliaup](https://pkg.so/zh-hans/brew/juliaup/) - Shares pkgdb curated category or tags: cli, developer-tools, installer.
- [makensis](https://pkg.so/zh-hans/brew/makensis/) - Shares pkgdb curated category or tags: cli, developer-tools, installer.
- [pie](https://pkg.so/zh-hans/brew/pie/) - Shares pkgdb curated category or tags: cli, developer-tools, installer.
- [changelogen](https://pkg.so/zh-hans/brew/changelogen/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, github, github-releases.

## Combined YAML source

View the package source record on GitHub. [combined/ubi.yml](https://github.com/mxcl/pkgdb/blob/main/combined/ubi.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
- external package-manager database matches
- cross-ecosystem install command graph
