# 使用 Homebrew, apk, apt, dnf, MacPorts, pacman 安装 repo

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

## 安装

```sh
sudo av install brew:repo
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install repo
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install repo
```

  证据: MacPorts ports tree: python/repo/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add repo
```

  证据: Alpine Linux edge package indexes: repo from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install repo
```

  证据: Debian stable package indexes: repo from https://deb.debian.org/debian/dists/stable/contrib/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install repo
```

  证据: Fedora Rawhide package metadata: repo from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- pacman (92%):

```sh
sudo pacman -S repo
```

  证据: Arch Linux sync databases: repo from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## 软件包事实

- **软件包键:** brew:repo
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/repo>
- **版本:** 2.65
- **来源摘要:** Repository tool for Android development
- **主页:** <https://source.android.com/source/developing.html>
- **上游文档:** <https://source.android.com/source/developing.html>
- **许可证:** Apache-2.0
- **源码归档:** <https://gerrit.googlesource.com/git-repo.git>
- **最后更新:** 2026-07-06T21:39:16Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- repo (cli)
- repo (别名)

## macOS 提供的库

- python

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 2.65
- 管理器更新时间: 2026-07-06
- 本地数据: OK
- 上游仓库: https://source.android.com/source/developing.html
- 信息: Release/tag comparison is only available for GitHub repositories.

## 安全说明

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



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: .repo/
## 源数据库详情

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

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

- Debian apt - repo - 2.54-1: normalized package name match | Debian stable package indexes: repo from https://deb.debian.org/debian/dists/stable/contrib/binary-amd64/Packages.xz | repository management tool built on top of git | https://source.android.com/source/developing.html
- Ubuntu apt - repo - 2.36.1-1: normalized package name match | Ubuntu 24.04 LTS package indexes: repo from https://archive.ubuntu.com/ubuntu/dists/noble/multiverse/binary-amd64/Packages.gz | repository management tool built on top of git | https://source.android.com/source/developing.html
- apk - repo - 2.64-r0: normalized package name match | Alpine Linux edge package indexes: repo from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | repository management tool built on top of git | https://gerrit.googlesource.com/git-repo
- apk - repo-doc - 2.64-r0: normalized package name match | Alpine Linux edge package indexes: repo-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | repository management tool built on top of git (documentation) | https://gerrit.googlesource.com/git-repo
- dnf - repo - 2.65-2.fc45: normalized package name match | Fedora Rawhide package metadata: repo from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Repository management tool built on top of git | https://gerrit.googlesource.com/git-repo
- pacman - repo - 2.62-1: normalized package name match | Arch Linux sync databases: repo from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | The Multiple Git Repository Tool from the Android Open Source Project | https://android.googlesource.com/tools/repo
- MacPorts - repo: normalized package name match | MacPorts ports tree: python/repo/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [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.
- [libgit2](https://pkg.so/zh-hans/brew/libgit2/) - Shares pkgdb curated category or tags: cli, developer-tools, git, version-control.
- [lazygit](https://pkg.so/zh-hans/brew/lazygit/) - Shares pkgdb curated category or tags: cli, developer-tools, git, version-control.
- [codeberg-cli](https://pkg.so/zh-hans/brew/codeberg-cli/) - Shares pkgdb curated category or tags: cli, developer-tools, git, version-control.
- [pygitup](https://pkg.so/zh-hans/brew/pygitup/) - Shares pkgdb curated category or tags: cli, developer-tools, git, version-control.
- [lab](https://pkg.so/zh-hans/brew/lab/) - Shares pkgdb curated category or tags: cli, developer-tools, git, version-control.
- [reposurgeon](https://pkg.so/zh-hans/brew/reposurgeon/) - Shares pkgdb curated category or tags: cli, developer-tools, git, version-control.
- [dura](https://pkg.so/zh-hans/brew/dura/) - Shares pkgdb curated category or tags: cli, developer-tools, git, version-control.
- [microplane](https://pkg.so/zh-hans/brew/microplane/) - Shares pkgdb curated category or tags: cli, developer-tools, git, repository-management, version-control.
- [git-url-sub](https://pkg.so/zh-hans/brew/git-url-sub/) - Local package facts share a topical domain. Shared terms: cli, control, developer, developer-tools, git.
- [braid](https://pkg.so/zh-hans/brew/braid/) - Local package facts share a topical domain. Shared terms: cli, control, developer, developer-tools, git.

## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
