# 使用 Homebrew, apk, dnf, Nix 安装 git-archive-all

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

## 安装

```sh
sudo av install brew:git-archive-all
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install git-archive-all
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add git-archive-all
```

  证据: Alpine Linux edge package indexes: git-archive-all from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install git-archive-all
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#git-archive-all
```

  证据: nixpkgs package indexes: pkgs/by-name/gi/git-archive-all/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:git-archive-all
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/git-archive-all>
- **版本:** 1.23.1
- **来源摘要:** Archive a project and its submodules
- **主页:** <https://github.com/Kentzo/git-archive-all>
- **仓库:** <https://github.com/Kentzo/git-archive-all>
- **许可证:** MIT
- **源码归档:** <https://github.com/Kentzo/git-archive-all/archive/refs/tags/1.23.1.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- git-archive-all (cli)
- git-archive-all (别名)

## macOS 提供的库

- python

## 安装行为

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

## 版本和新鲜度

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

git-archive-all is a Python command-line wrapper around git archive that archives a Git superproject together with its submodules.

### 项目历史

The repository opened in 2010 to solve a practical packaging gap: git archive works well for one repository, but release tarballs often need the checked-out contents of submodules too. The project kept the interface close to git archive while adding recursive submodule traversal, export-ignore support, include paths, dry-run output, and compression control.

The changelog shows a maintenance phase focused on cross-platform archive correctness: tests and export-ignore handling in 2018, Windows and Apple Git compatibility fixes, non-Unicode filename handling, and a 2021 change to retrieve submodule lists via Git rather than parsing .gitmodules directly.

### 采用历史

Adoption is utilitarian rather than broad-platform-defining. Its presence on PyPI, Homebrew, and Linux package sets reflects a common release-engineering need: produce source archives from repositories whose dependencies are tracked as Git submodules.

### 使用方式

Practitioners run git-archive-all with an output filename, optional base repository, prefix, export-ignore behavior, forced submodule update, include paths, dry-run mode, and compression level. It is typically used for release tarballs, vendor drops, or reproducible snapshots where submodules must be included.

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

Package maintainers care because missing submodules are a classic broken-source-tarball problem. git-archive-all offers a boring, scriptable answer that honors Git attributes and avoids inventing a new archive format.

### 时间线

- 2010: Repository created.
- 2018: CHANGES.rst started tracking releases; tests and export-ignore handling were added.
- 2018: Windows support and Apple Git compatibility fixes landed in the 1.19 series.
- 2021: Version 1.23.0 began retrieving submodules via Git.
- 2022: Version 1.23.1 added typing information to PyPI and source distributions.

### Related projects

- Related tools include Git's git archive command, Git submodules, .gitattributes export-ignore rules, PyPI packaging, and Homebrew formula packaging.

### 来源

- <https://api.github.com/repos/Kentzo/git-archive-all>
- <https://formulae.brew.sh/formula/git-archive-all>
- <https://github.com/Kentzo/git-archive-all>
- <https://github.com/Kentzo/git-archive-all/blob/master/CHANGES.rst>
- <https://github.com/Kentzo/git-archive-all/blob/master/README.rst>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

## 源数据库详情

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

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

- Nix - git-archive-all: normalized package name match | nixpkgs package indexes: pkgs/by-name/gi/git-archive-all/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - git-archive-all - 1.23.1-r5: normalized package name match | Alpine Linux edge package indexes: git-archive-all from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Wrapper for git-archive that archives a git superproject and its submodules | https://github.com/Kentzo/git-archive-all
- apk - git-archive-all-pyc - 1.23.1-r5: normalized package name match | Alpine Linux edge package indexes: git-archive-all-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Precompiled Python bytecode for git-archive-all | https://github.com/Kentzo/git-archive-all
- dnf - git-archive-all - 1.23.1-17.fc45: normalized package name match | Fedora Rawhide package metadata: git-archive-all from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Archive git repository with its submodules | https://github.com/Kentzo/git-archive-all


## 相关链接

- [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.
- [gitup](https://pkg.so/zh-hans/brew/gitup/) - Shares pkgdb curated category or tags: cli, developer-tools, git, python.
- [pygitup](https://pkg.so/zh-hans/brew/pygitup/) - Shares pkgdb curated category or tags: cli, developer-tools, git, python.
- [git-big-picture](https://pkg.so/zh-hans/brew/git-big-picture/) - Shares pkgdb curated category or tags: cli, developer-tools, git, python.
- [git-subrepo](https://pkg.so/zh-hans/brew/git-subrepo/) - Shares pkgdb curated category or tags: cli, developer-tools, git, submodules.
- [git-imerge](https://pkg.so/zh-hans/brew/git-imerge/) - Shares pkgdb curated category or tags: cli, developer-tools, git, python.
- [py7zr](https://pkg.so/zh-hans/brew/py7zr/) - Shares pkgdb curated category or tags: archive, cli, developer-tools, python.
- [darker](https://pkg.so/zh-hans/brew/darker/) - Shares pkgdb curated category or tags: cli, developer-tools, git, python.
- [gh](https://pkg.so/zh-hans/brew/gh/) - Shares pkgdb curated category or tags: cli, developer-tools, git.

## Combined YAML source

View the package source record on GitHub. [combined/git-archive-all.yml](https://github.com/mxcl/pkgdb/blob/main/combined/git-archive-all.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
