# 使用 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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
- **版本:** 1.23.1
- **来源摘要:** Archive a project and its submodules
- **主页:** <https://github.com/Kentzo/git-archive-all>
- **仓库:** <https://github.com/Kentzo/git-archive-all>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- git-archive-all (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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

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

- 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Archive git repository with its submodules | https://github.com/Kentzo/git-archive-all


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