# 使用 Homebrew 安装 bagit

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

## 安装

```sh
sudo av install brew:bagit
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install bagit
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:bagit
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/bagit>
- **版本:** 1.9.0
- **来源摘要:** Library for creation, manipulation, and validation of bags
- **主页:** <https://libraryofcongress.github.io/bagit-python/>
- **仓库:** <https://github.com/LibraryOfCongress/bagit-python>
- **上游文档:** <https://libraryofcongress.github.io/bagit-python>
- **许可证:** CC0-1.0
- **源码归档:** <https://files.pythonhosted.org/packages/a1/a0/8866b4c6f894af0eb10e4964157f3241dd4117700fc010e7825471d51a13/bagit-1.9.0.tar.gz>
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- bagit.py (cli)
- bagit.py (别名)

## 依赖

- python@3.14

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 1.9.0
- 本地数据: OK
- 上游仓库: https://libraryofcongress.github.io/bagit-python/
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

bagit is the Library of Congress-maintained Python library and command-line utility for creating, reading, and validating BagIt packages. Its importance comes from the BagIt format more than from the code itself: BagIt is a simple directory layout for reliable transfer and preservation of arbitrary digital content.

### 项目历史

The BagIt format was developed in the digital-preservation community and standardized as RFC 8493 in October 2018 by contributors from the California Digital Library, Stanford Libraries, the Library of Congress, and others. The RFC describes BagIt as a filesystem hierarchy with payload files, tag files, manifests, and checksum validation rather than as a compressed archive format.

The bagit-python repository was created under the Library of Congress GitHub organization in 2013. Its README presents the package as both a Python module and a `bagit.py` command-line program for turning directories into bags, updating bag metadata, regenerating manifests, and validating bags.

### 采用历史

RFC 8493 notes BagIt use across preservation organizations including the Library of Congress, Dryad Data Repository, NSF DataONE, the Rockefeller Archive Center, and university libraries including Cornell, Purdue, Stanford, Ghent University, New York University, and the University of California.

In package-manager culture, `bagit` is a small but durable archival utility: Homebrew packages it as a formula, and the formula API reported stable version 1.9.0 with 19 installs in the previous 30 days as of June 30, 2026.

### 使用方式

Common CLI workflows are `bagit.py /path/to/dir` to create a bag, `bagit.py --validate /path/to/bag` to validate manifests and payloads, and checksum flags such as `--sha256` or `--sha512` to control manifest generation. The module API exposes the same ideas through `bagit.make_bag`, `bagit.Bag`, `save`, and `validate`.

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

bagit is a package nerd's preservation tool: it turns a normal directory tree into a self-describing, checksum-verifiable transfer object without forcing data into tar or zip. It is the kind of small CLI that matters in archives, data repositories, and reproducible handoffs precisely because its format is boring and inspectable with ordinary filesystem tools.

### 时间线

- 2013: LibraryOfCongress/bagit-python repository created on GitHub.
- 2018: BagIt File Packaging Format v1.0 published as RFC 8493.
- 2026: Homebrew formula reports stable bagit 1.9.0.

### Related projects

- RFC 8493 lists implementations in several languages, including Python, Ruby, Java, Perl, and PHP.
- The broader BagIt ecosystem includes archival repositories and preservation workflows that exchange bags between institutions.

### 来源

- <https://api.github.com/repos/LibraryOfCongress/bagit-python>
- <https://formulae.brew.sh/api/formula/bagit.json>
- <https://raw.githubusercontent.com/LibraryOfCongress/bagit-python/master/README.rst>
- <https://www.rfc-editor.org/rfc/rfc8493.txt>


## 安全说明

library-like package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- library-like package without higher-risk signals

## 源数据库详情

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


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Language runtime packages](https://www.automicvault.com/zh-hans/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [python@3.14](https://www.automicvault.com/zh-hans/pkg/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [csvkit](https://www.automicvault.com/zh-hans/pkg/brew/csvkit/) - Shares av.db curated category or tags: cli, data, python.
- [fred](https://www.automicvault.com/zh-hans/pkg/brew/fred/) - Shares av.db curated category or tags: cli, data, python.
- [glom](https://www.automicvault.com/zh-hans/pkg/brew/glom/) - Shares av.db curated category or tags: cli, data, python.
- [iredis](https://www.automicvault.com/zh-hans/pkg/brew/iredis/) - Shares av.db curated category or tags: cli, data, python.
- [kaskade](https://www.automicvault.com/zh-hans/pkg/brew/kaskade/) - Shares av.db curated category or tags: cli, data, python.
- [mysql-to-sqlite3](https://www.automicvault.com/zh-hans/pkg/brew/mysql-to-sqlite3/) - Shares av.db curated category or tags: cli, data, python.
- [overturemaps](https://www.automicvault.com/zh-hans/pkg/brew/overturemaps/) - Shares av.db curated category or tags: cli, data, python.
- [rgf](https://www.automicvault.com/zh-hans/pkg/brew/rgf/) - Shares av.db curated category or tags: cli, data, python.
- [datalad](https://www.automicvault.com/zh-hans/pkg/brew/datalad/) - Both packages touch the same language runtime or ecosystem. Shared terms: archives, cli, data, python, python-3-14.

## Combined YAML source

View the package source record on GitHub. [combined/bagit.yml](https://github.com/automic-vault/db/blob/main/combined/bagit.yml)


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- cross-ecosystem install command graph
